Exemplo n.º 1
0
    void Start()
    {
        mapUI          = GameObject.Find("PlayerShip").GetComponent <MapUI>();
        mapSpawn       = GameObject.Find("TileBorders").GetComponent <MapSpawn>();
        roomMemory     = GameObject.Find("RoomMemory").GetComponent <RoomMemory>();
        templates      = GameObject.Find("MapTemplates").GetComponent <MapTemplates>();
        missionManager = FindObjectOfType <MissionManager>();

        //0 - no room
        //1 - top open room
        //2 - bottom open room
        //3 - right open room
        //4 - left open room
        //5 - top and bottom open
        //6 - left and right open
        //7 - left and top open
        //8 - right and top open
        //9 - left and bottom open
        //10 - right and bottom open
        //11 - bottom, top, right open
        //12 - bottom, top, left open
        //13 - bottom, left, right open
        //14 - top, left, right open
        //15 - all open
    }
Exemplo n.º 2
0
        public void Start()
        {
            //RestartTimers();

            PlayersInGame = new List <Player>(PlayersInLobby);
            foreach (var pl in PlayersInGame)
            {
                pl.InGame = true;
            }
            if (GameMode == GameMode.GUIDED)
            {
                PlayersInGame.Remove(Creator);
            }
            PlayersAllive = PlayersInGame.Count;
            Map           = new Map(this, MapTemplates.GetRandomMap());
            Map.SpawnPlayers();
            StartTimerRunning = false;
            GameState         = GameState.COUNTDOWN; // musi byt posledné, inak by sa mohlo pristupovať ku null objektom
        }
Exemplo n.º 3
0
 void Awake()
 {
     mapUI      = GameObject.Find("PlayerShip").GetComponent <MapUI>();
     templates  = GameObject.Find("MapTemplates").GetComponent <MapTemplates>();
     roomMemory = GameObject.Find("RoomMemory").GetComponent <RoomMemory>();
 }