예제 #1
0
파일: Bot.cs 프로젝트: RomanAstra/-James-
 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);
        }