示例#1
0
    void Start()
    {
        initScripts += Init;

        /*if you launch directly in scene autoLaunch is by default true*/
        if (autoLaunch)
        {
            if (PoolManager.Instance != null)
            {
                PoolManager.Instance.InitPool();
            }
            initScripts.Invoke();
        }
    }
示例#2
0
 void Start()
 {
     //PlayerPrefs.DeleteAll();
     Config.Startload(this,
                      () =>
     {
         //不删除
         DontDestroyOnLoad(gameObject);
         //添加脚本
         InitScripts intiScripts = gameObject.AddComponent <InitScripts>();
         //调用跳转场景方法
         intiScripts.Initialized();
         //跳转场景 到 start场景
         SceneTools.instance.LoadScene("Login");
         //将打印
         Application.logMessageReceived += Handler;
     });
 }