Ejemplo n.º 1
0
    void Start()
    {
        _activePlayers     = new bool[4];
        _activeControllers = new bool[4];
        _playerColors      = new Color[4];

        _playerColors[0] = Color.blue;
        _playerColors[1] = Color.red;
        _playerColors[2] = Color.green;
        _playerColors[3] = Color.yellow;

        _playerSpawns = new List <PlayerSpawn>(GetComponentsInChildren <PlayerSpawn>());
        _playerSpawns.Sort((spawn1, spawn2) => (int)spawn1.transform.position.x - (int)spawn2.transform.position.x);

        _controlSet = ControlSet.DefaultControlSet();
    }