seefood_diet / Assets / Scripts / SDGameController.cs
SDGameController.cs
Raw
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public interface ISDGameController : ISDController {

    void Launch ();
}

public class SDGameController : SDController, ISDGameController {

    private ISDUIMainController m_UIMainController;
    public ISDUIMainController UIMainController { get { return m_UIMainController; } }

    public static ISDGameController Create () {

        return new SDGameController (null);
    }

    protected SDGameController (ISDController parentController) : base (parentController) {

    }

    public void Launch () {

        InitViewControllers ();
    }

    void InitViewControllers () {

        var sceneViewFinder = SDSceneViewFinder.SharedInstance;

        m_UIMainController = SDUIMainController.Create (this, sceneViewFinder.UIMainView);
        m_UIMainController.Init ();
    }
}