예제 #1
0
    void Awake()
    {
        lobbyScene  = GameObject.FindObjectOfType <LobbyScene>();
        inGameScene = GameObject.FindObjectOfType <inGameScene>();

        lobbyScene.Init(this);
        inGameScene.Init(this);

        lobbyScene.Show();
    }
예제 #2
0
    public void ShowScene(Scene _scene, E_GAME_SCENE _change_scene_index)
    {
        _scene.Hide();

        switch (_change_scene_index)
        {
        case E_GAME_SCENE.E_LOBBY:
        {
            lobbyScene.Show();
        }
        break;

        case E_GAME_SCENE.E_IN_GAME:
        {
            inGameScene.Show();
        }
        break;
        }
    }