protected void StartAmove() { foreach (EnemyMoveset a in startingMove) { a.enemy = this; } foreach (EnemyMoveset a in moveSet) { a.enemy = this; } if (startingMove.Count > 0) { currentChargeMove = startingMove[0]; startingMove.RemoveAt(0); } else { currentChargeMove = moveSet[0]; } currentChargeCycleTimer = currentChargeMove.CycleBeforeMove; nextMoveString = currentChargeMove.MoveDisplay(); SetIntentIcon(); UpdateCycleDisplay(); }
protected void NextMove() { int a; if (moveSet.Contains(currentChargeMove)) { a = moveSet.IndexOf(currentChargeMove); a++; } else { a = 0; } if (a > moveSet.Count - 1) { a = 0; } currentChargeMove = moveSet[a]; currentChargeCycleTimer = currentChargeMove.CycleBeforeMove; SetIntentIcon(); nextMoveString = currentChargeMove.MoveDisplay(); }