Beispiel #1
0
    // check if this side is doing unit placement
    void PlaceUnits(PlaceUnitsEvent e)
    {
        if(e.Side == gameObject){
            LightAllTiles(true);

            curState = SideState.UnitPlacing;
        }
    }
Beispiel #2
0
 /*
 *******************************************
             Event Functions
 *******************************************
 */
 // what to do when units should start to be placed
 void PlaceUnits(PlaceUnitsEvent e)
 {
     if(e.Player == gameObject){
         curState = PlayerState.PlacingUnits;
         sideTiles = e.Side.GetComponent<SideManager>().SidePieces;
     }
 }