Exemplo n.º 1
0
 public void ClickSpeedSpawnButton()
 {
     Debug.Log(playerNumber + "player : SpeedUnit Click");
     if (!checkSpawnDoing)
     {
         checkSpawnDoing = true;
         unitType        = Unit.UnitType.Speed;
         newUnit         = (GameObject)Instantiate(unitList[(int)unitType]);
         SpeedUnit speedUnit = newUnit.GetComponent <SpeedUnit>();
         speedUnit.spawnManager = this;
         speedUnit.Initialize();
         CheckClocking(speedUnit);
     }
 }