示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        players       = new List <Player>();
        currentStatus = (Definitions.GameStatus) 1;
        //SwitchStatus(1);
        errorFileLocalion = "Error in GameControl class, ";
        units             = GameObject.Find("Unit(s)");
        currentPlayer     = new Player(0, Color.red);
        InitialBase(currentPlayer.playerID);
        players.Add(currentPlayer);

        Player another = new Player(1, Color.blue);

        InitialBase(another.playerID);
        players.Add(another);
    }
示例#2
0
 public void SwitchStatus(Definitions.GameStatus status)
 {
     currentStatus = status;
 }