Esempio n. 1
0
    private void OnUnlockComplete(int id, bool guide = true)
    {
        mUnlocks.Add(id, true);

        FunctionEvent evt = new FunctionEvent(FunctionEvent.FUNCTION_UNLOCKED);

        evt.functionid = id;
        EventSystem.Instance.PushEvent(evt);

        //触发引导
        if (guide)
        {
            GuideModule module = ModuleManager.Instance.FindModule <GuideModule>();
            module.OnFunctionUnlock(id);
        }
    }