Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        Debug.Log("start Start");

        // input
        GameObject   inputgo  = new GameObject("inputManager");
        inputManager inputmgr = inputgo.AddComponent <inputManager>();

        inputmgr.Init();
        GameObject.DontDestroyOnLoad(inputgo);

        // ui
        GameObject uigo  = new GameObject("uiManager");
        uiManager  uimgr = uigo.AddComponent <uiManager>();

        uimgr.Init();
        GameObject.DontDestroyOnLoad(uigo);

        // lua
        GameObject go     = new GameObject("luaManager");
        luaManager luamgr = go.AddComponent <luaManager>();

        luamgr.Init();
        GameObject.DontDestroyOnLoad(go);
    }
Beispiel #2
0
    public override void Init()
    {
        base.Init();

        GameManager.Instance.Init(_player);



        _uiMgr.Init(_player);
    }