// check if this side is doing unit placement void PlaceUnits(PlaceUnitsEvent e) { if(e.Side == gameObject){ LightAllTiles(true); curState = SideState.UnitPlacing; } }
/* ******************************************* 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; } }