public override void ProcessArrayList(ArrayList sentArrayList) { for (int i = 0; i < sentArrayList.Count; i++) { if (sentArrayList[i] is PlayerInstruction) { PlayerInstruction instruction = (PlayerInstruction)sentArrayList[i]; ProcessSpawn(instruction.SpawnPoint); } } }
public override void AddDataToArrayList(ArrayList sentArrayList) { PlayerInstruction instruction = new PlayerInstruction(thisPlayer.gameObject.transform); sentArrayList.Add(instruction); }
public PlayerInstruction GetPlayerInstruction() { PlayerInstruction newInstruction = new PlayerInstruction(spawnPoint); return(newInstruction); }