Пример #1
0
    //自动在最后一个任务被点击的时候,发送同步信息
    public void AutoSendMsgAtLastTask()
    {
        if (isLastOfCurGuide)
        {
            Debug.Log("Guide is Finish and I should delete it's gameobject .");
            try
            {
                if (uiGuide != null)
                {
                    uiGuide.DestoryGuide();
                    uiGuide = null;
                    if (OnGuideFinished != null)
                    {
                        OnGuideFinished();
                    }
                }
            }
            catch (System.Exception ex)
            {
                Debug.LogError(ex.ToString());
            }

            SendRecastMsg();
        }
    }
Пример #2
0
 public static void SafeDestroy()
 {
     Core.Data.temper.SetGameTouch(true);
     if (_Instance != null)
     {
         _Instance.DestoryGuide();
     }
 }