Пример #1
0
 internal void RemoveExitBtnGuideUIWidget(UGuideWidgetMsgData _msgData)
 {
     if (ExitBtn != null)
     {
         Guide.UGuideWidget guideWidget = ExitBtn.gameObject.GetComponent <Guide.UGuideWidget>();
         if (guideWidget != null)
         {
             ExitBtn.gameObject.RemoveComponent <Guide.UGuideWidget>();
         }
     }
 }
Пример #2
0
 internal void AddExitBtnGuideUIWidget(UGuideWidgetMsgData _msgData)
 {
     if (ExitBtn != null)
     {
         Guide.UGuideWidget guideWidget = ExitBtn.gameObject.GetComponent <Guide.UGuideWidget>();
         if (guideWidget == null)
         {
             guideWidget = ExitBtn.gameObject.AddComponent <Guide.UGuideWidget>();
         }
         guideWidget.GuideID       = (GUIDE.EGuideNodeID)_msgData.nGuideID;
         guideWidget.GuideStepID   = _msgData.nGuideStepID;
         guideWidget.GuideEffectID = _msgData.nGuideEffectID;
     }
 }