You've already forked taptap2024_GJ_chidouren
update core
This commit is contained in:
@@ -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,11 +6,10 @@ 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 ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user