private void Awake() { _targetPoints = new Transform[4] { _point1, _point2, _point3, _point4 }; _patrol = new Patrol(_targetPoints, _targetPlayer, transform); Hp = 50; IsDeath = false; }
private void Start() { _patrol = GetComponent <Patrol>(); _dest = GetComponent <AIDestinationSetter>(); _animator = GetComponent <Animator>(); _aiPath = GetComponent <AIPath>(); _patrol.enabled = true; _dest.enabled = false; TransitionTo(State); }