// Use this for initialization void Start () { gameInfos = GameObject.FindGameObjectWithTag("GameInfos").GetComponent<GameInfosScript>(); for(int i = 0; i < gameInfos.nbJoueurs; i++) { AddPlayer(gameInfos.players[i], i == gameInfos.idJoueur); } }
// Use this for initialization void Start() { CreateAlert(AlertType.DEBUT); audioManager = GameObject.FindGameObjectWithTag("AudioManager").GetComponent<AudioManager>(); audioManager.ChangeMusic(1); //GameObject.FindGameObjectWithTag("Canvas").GetComponent<CanvasScript>().SetInGameMode(); gameInfos = GameObject.FindGameObjectWithTag("GameInfos").GetComponent<GameInfosScript>(); client = GameObject.FindGameObjectWithTag("Client").GetComponent<ClientScript>(); client.gameManager = this; complex.InitializeComplex(gameInfos.gridCode, gameInfos.players, gameInfos.nbJoueursTotal); actualPlayer = complex.players[gameInfos.idJoueur]; LoadEvents(); log = GameObject.FindGameObjectWithTag("Log").GetComponent<LogScript>(); log.transform.SetParent(logPanel.transform); if (gameInfos.players[gameInfos.idJoueur].Role == Role.GUARDIAN) revealGuardianButton.gameObject.SetActive(true); else revealGuardianButton.gameObject.SetActive(false); WaitForFirstRoomToLookDirection(1, 1, 1, 1); }
// Use this for initialization void Start () { gameInfos = GameObject.FindGameObjectWithTag("GameInfos").GetComponent<GameInfosScript>(); }