You've already forked taptap2024_GJ_chidouren
update core
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -20,8 +20,8 @@
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>
|
||||
<!--必要权限,解决安全风险漏洞,发送和注册广播事件需要调用带有传递权限的接口-->
|
||||
<permission android:name="com.cs.shengxiao.openadsdk.permission.TT_PANGOLIN" android:protectionLevel="signature"/>
|
||||
<uses-permission android:name="com.cs.shengxiao.openadsdk.permission.TT_PANGOLIN"/>
|
||||
<permission android:name="com.cs.taptapGj.openadsdk.permission.TT_PANGOLIN" android:protectionLevel="signature"/>
|
||||
<uses-permission android:name="com.cs.taptapGj.openadsdk.permission.TT_PANGOLIN"/>
|
||||
|
||||
<application>
|
||||
<activity android:name="com.unity3d.player.UnityPlayerActivity"
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace Game.Component
|
||||
)
|
||||
);
|
||||
#else
|
||||
public bool HasRunaway => MapContent.Instance.IsRunaway ?? false;
|
||||
public bool HasRunaway => MapContent.Instance?.IsRunaway ?? false;
|
||||
|
||||
public float CurMoveSpeed => (MapContent.Instance.MoveGlobalOffset) * this._curMoveSpeedOffset * (this.MaxMoveSpeed *
|
||||
(1 +
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using Unity.VisualScripting;
|
||||
using Cinemachine.Utility;
|
||||
using Framework.Utils.Extend;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Game.Component.EnemyFSM_AI
|
||||
@@ -25,7 +27,7 @@ namespace Game.Component.EnemyFSM_AI
|
||||
private Vector2 CreateRandomPos ()
|
||||
{
|
||||
var point = this.Entity.CreatePos;
|
||||
var area = this.Entity.WalkArea.Abs ();
|
||||
var area = this.Entity.WalkArea.ABS ();
|
||||
//随机生成一个位置
|
||||
var x = Random.Range(point.x - area.x / 2, point.x + area.x / 2);
|
||||
var y = Random.Range(point.y - area.y / 2, point.y + area.y / 2);
|
||||
|
||||
@@ -6,12 +6,11 @@ namespace Game.Component.Map
|
||||
{
|
||||
public class MovePathGroup : MonoBehaviour
|
||||
{
|
||||
private List<Vector3> _pathList;
|
||||
private List<Vector3> _pathList;
|
||||
public List<Transform> PathList;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
|
||||
public List<Transform> PathList;
|
||||
|
||||
private void OnDrawGizmos ()
|
||||
{
|
||||
if (PathList == null)
|
||||
|
||||
8
Assets/StreamingAssets/GameRes.meta
Normal file
8
Assets/StreamingAssets/GameRes.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94ff06adb78d8f140b7e6b3040f8f64b
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -5,6 +5,11 @@ namespace Framework.Utils.Extend
|
||||
{
|
||||
public static class VectorExtend
|
||||
{
|
||||
public static Vector2 ABS (this Vector2 vector2)
|
||||
{
|
||||
return new Vector2 (math.abs (vector2.x) , math.abs (vector2.y));
|
||||
}
|
||||
|
||||
public static Vector3 SetZ (this Vector3 vector3 , float z)
|
||||
{
|
||||
return new Vector3 (vector3.x , vector3.y , z);
|
||||
|
||||
@@ -12,8 +12,8 @@ PlayerSettings:
|
||||
targetDevice: 2
|
||||
useOnDemandResources: 0
|
||||
accelerometerFrequency: 60
|
||||
companyName: cs-network
|
||||
productName: TaptapGJ_CS
|
||||
companyName: foldcc
|
||||
productName: "\u6D6E\u5149"
|
||||
defaultCursor: {fileID: 0}
|
||||
cursorHotspot: {x: 0, y: 0}
|
||||
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
|
||||
|
||||
Reference in New Issue
Block a user