Пример #1
0
 private void Awake()
 {
     _targetPoints = new Transform[4] {
         _point1, _point2, _point3, _point4
     };
     _patrol = new Patrol(_targetPoints, _targetPlayer, transform);
     Hp      = 50;
     IsDeath = false;
 }
Пример #2
0
        private void Start()
        {
            _patrol   = GetComponent <Patrol>();
            _dest     = GetComponent <AIDestinationSetter>();
            _animator = GetComponent <Animator>();
            _aiPath   = GetComponent <AIPath>();

            _patrol.enabled = true;
            _dest.enabled   = false;

            TransitionTo(State);
        }