Exemplo n.º 1
0
 void Awake()
 {
     if (!isGameStart)
     {
         loadSceneControlClass = this;
         //SceneManager.LoadSceneAsync (3, LoadSceneMode.Additive);
         StartCoroutine(LoadingScene(1));
         isGameStart = true;
     }
 }
Exemplo n.º 2
0
    void Start()
    {
        exitBtnObj = Instantiate(exitBtnPreb) as GameObject;
        exitBtnObj.transform.SetParent(gameObject.transform, false);

        exitBut = exitBtnObj.GetComponent <Button>();
        loadingSenceControlScript = loadingScenePreb.GetComponent <LoadingSenceControl> ();

        alphaBtn.onClick.AddListener(() => LoadingSenceControl.loadSceneControlClass.LoadScene(2));
        //exitBut.onClick.AddListener(()=>StartCoroutine(loadScreenScript.loadingScreen(1)));
    }
Exemplo n.º 3
0
    void Start()
    {
        exitBtnObj = Instantiate(exitBtnPreb) as GameObject;
        exitBtnObj.transform.SetParent(gameObject.transform, false);

        exitBut = exitBtnObj.GetComponent <Button>();
        loadingSenceControlScript = loadingScenePreb.GetComponent <LoadingSenceControl> ();


        thisRoomData = new GameRoomsData();
        GameRoomInfo.randomSeedNumClass.GetRoomInfo();
        StartCoroutine(waitingToGetRoomData());



        //exitBut.onClick.AddListener(()=>StartCoroutine(loadingSenceControlScript.LoadingScene(1)));
        //roomBBtn.onClick.AddListener(()=>StartCoroutine(loadingSenceControlScript.LoadingScene(3)));
        //exitBut.onClick.AddListener(()=>LoadingSenceControl.loadSceneControlClass.LoadScene(1));
        //roomBBtn.onClick.AddListener(()=>LoadingSenceControl.loadSceneControlClass.LoadScene(3));
    }