void Start() { stats = GetComponentInParent <EnemyStats>(); rb = GetComponentInParent <Rigidbody>(); stats.movementClock.ClockEnded += OnShouldMove; currentNode = stats.gameObject.transform.position; currentDirection = MouchouDirection.Down; }
private void Start() { Stats = new EnemyStats( damage: 10, maxHealth: 1000, speedFactor: 33 ); currentHealth = Stats.MaxHealth; UpdateHealthSlider(); }
// Start is called before the first frame update void Start() { stats = GetComponentInParent <EnemyStats>(); stats.attackClock.ClockEnded += OnShouldAttack; }