void Start()
        {
            stats = GetComponentInParent <EnemyStats>();
            rb    = GetComponentInParent <Rigidbody>();

            stats.movementClock.ClockEnded += OnShouldMove;

            currentNode      = stats.gameObject.transform.position;
            currentDirection = MouchouDirection.Down;
        }
Esempio n. 2
0
 private void Start()
 {
     Stats = new EnemyStats(
         damage: 10,
         maxHealth: 1000,
         speedFactor: 33
         );
     currentHealth = Stats.MaxHealth;
     UpdateHealthSlider();
 }
Esempio n. 3
0
        // Start is called before the first frame update
        void Start()
        {
            stats = GetComponentInParent <EnemyStats>();

            stats.attackClock.ClockEnded += OnShouldAttack;
        }