예제 #1
0
    void Start()
    {
        instance = this;

        list.getDiffCallback     = difficult.GetDiff;
        difficult.changeCallback = list.OnDiffChange;

        Global.init(() =>
        {
            Debug.Log("配置文件加载完毕。");
            list.createListComplete = () =>
            {
                if (Guide.instance != null)
                {
                    Guide.instance.Show();
                }
            };

            list.CreateList();
            DataUtils.RandomCharacter();

            //测试
            if (DataUtils.runingAutoMode)
            {
                Invoke("AutoGoNext", 3);
            }
        });
        pressTime = Time.time;
    }