public override void AiInitialize() { base.AiInitialize(); metPosition = checkMet(); //Sets the ai status for the first mettaur to move, rest to guard MettaurBase Met = (MettaurBase)stage.actorArray.GetValue(metPosition[0]); Met.MetMoveStatus = true; if (!(this == Met)) { setGuard(); } }
//Sets the next mettaur to active public void activateNext() { int MetNum = 0; for (int j = 0; j < metPosition.Count; j++) { if (stage.actorArray.GetValue(metPosition[j]) == this) { MetNum = j; break; } } int index = (MetNum + 1) % metPosition.Count; MettaurBase Met = (MettaurBase)stage.actorArray.GetValue(metPosition[index]); Met.breakGuard(); Met.didAttack = false; Met.elapsedTime = 0; Met.MetMoveStatus = true; }