Exemplo n.º 1
0
    public override async Task OnEnter(GameState previous = null)
    {
        Debug.Log("Entered Inital");
        gm = GameMachine.Instance;
        await gm.Loading.Deactive();

        splash = GameObject.FindObjectOfType <SplashUI>();
        if (splash == null)
        {
            throw new System.Exception("Splash UI not found in current scene");
        }
        await splash.Show();

        GameMachine.Instance.NewState(new MenuState());
    }
Exemplo n.º 2
0
    private AndroidManager androidManager;              // Android manager reference
        #endif
    #endregion

    #region Initialization Methods
        #if !UNITY_EDITOR
    public void SetReferences(SplashUI splash)
    {
        // Update null references
        splashUI = splash;
    }