// 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); }
public override void Init() { base.Init(); GameManager.Instance.Init(_player); _uiMgr.Init(_player); }