void Start()
 {
     if (PhotonNetwork.inRoom)
         chatController = GameObject.Find("Main").GetComponent<Multi.ChatController>();
     playerController = GetComponent<BasicPlayerController>();
     player = playerController.Player;
     premiereFrames = 5;
     goal = false;
     playerMet = new List<Collider>();
 }
        private void instanciateMain(GameType type)
        {
            //type = GameType.Solo;
            if (type == GameType.Replay)
            {
                gameObject.AddComponent(this.replay);
                this.end = GetComponent<Multi.EndController>();
                this.chat = GetComponent<Multi.ChatController>();
                end.enabled = false;
                chat.enabled = false;
            }
            else if (type == GameType.Solo)
                gameObject.AddComponent(this.solo);
            else if (type == GameType.Multi)
            {
                gameObject.AddComponent(this.multi);
                //gameObject.AddComponent (typeof(GameScene.Multi.EndController));
                //gameObject.AddComponent (typeof(GameScene.Multi.ChatController));
            }

            this.instanciated = true;
        }