常用方法
常用方法
常用方法
常用方法
private void UpdateTarget() { UnitBase newTarget = MyTeam.GetNearestEnemyUnit(transform.position); if (newTarget != null && newTarget != target) { target = newTarget; } }
private void UpdateTarget() { UnitBase newTarget = MyTeam.GetNearestEnemyUnit(transform.position); if (newTarget != null && newTarget != target) { target = newTarget; } }