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

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

            return(newInstruction);
        }