Ejemplo n.º 1
0
        private SubGame GetSubGameInstance(ESubGame type)
        {
            SubGame subGame = null;

            switch (type)
            {
            case ESubGame.SplashScreen:
                subGame = new Splash();
                break;

            case ESubGame.Login:
                subGame = new Login();
                break;

            case ESubGame.Match:
                subGame = new Match();
                break;

            case ESubGame.Battle:
                subGame = new Battle();
                break;

            case ESubGame.SelectLevel:
                subGame = new SelectLevel();
                break;

            default:
                Debug.LogError("Unsupported SubGame Type!");
                break;
            }

            return(subGame);
        }
Ejemplo n.º 2
0
 public SelectLevelBridge(SelectLevel subGame) : base(subGame, new SelectLevelUI())
 {
 }