Ejemplo n.º 1
0
 /// <summary>
 /// This method is called when switching to this state.
 /// </summary>
 /// <param name="enemy"></param>
 public virtual void OnBegin(EnemyController enemy)
 {
     this.enemy = enemy;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Called upon entering the state, sets the reload time
        /// </summary>
        /// <param name="enemy"></param>
        public override void OnBegin(EnemyController enemy)
        {
            base.OnBegin(enemy);

            reloadTimeRemaining = reloadTime;
        }