Example #1
0
 public void NextPhase()
 {
     //Activate Next Checkpoint
     if (newControlPoint.Length > currControlPoint + 1)
     {
         MyCore.NetCreateObject(2, -1, newControlPoint[currControlPoint + 1]);
         currControlPoint++;
         SendUpdate("CURRCP", currControlPoint.ToString());
         //Move Lava, but wait for x seconds
         StartCoroutine(lava.LavaDelay(5));
     }
     else
     {
         //Set end game to true
         //Declare Winner
     }
 }