Example #1
0
 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);
         }
     }
 }
Example #2
0
        public override void AddDataToArrayList(ArrayList sentArrayList)
        {
            PlayerInstruction instruction = new PlayerInstruction(thisPlayer.gameObject.transform);

            sentArrayList.Add(instruction);
        }
Example #3
0
        public PlayerInstruction GetPlayerInstruction()
        {
            PlayerInstruction newInstruction = new PlayerInstruction(spawnPoint);

            return(newInstruction);
        }