You've already forked taptap2024_GJ_chidouren
update core
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user