示例#1
0
 void Awake()
 {
     if (UI.MainUI.MainUIController.Instance.IsShowCommonTool)
     {
         CreatObjectToNGUI.InstantiateObj(CommonToolPrefab, transform);
     }
     m_instace = this;
     //MyUICamera = UICamera.currentCamera;
 }
示例#2
0
 new void OnPress(bool isPressed)
 {
     if (!IsCanDrag)
     {
         return;
     }
     base.OnPress(isPressed);
     if (dragTool.CanDrag)
     {
         //Background.ChangeSprite(isPressed?2:1);
         //SetSelectStatus(true);
         if (isPressed)
         {
             SoundManager.Instance.PlaySoundEffect("Sound_Button_Default");
             PackInfo_V3 packInfo = MainUIController.Instance.GetPanel(UIType.Package) as PackInfo_V3;
             packInfo.containerPackList.UpdateSlotSelectStatus(this);
             packInfo.heroEquiptItemList.UpdateSelectStatus(this);
             OnViewAtbButtonClick(null);
         }
     }
 }
示例#3
0
 public void Init(PackInfo_V3 myParent)
 {
     this.MyParent = myParent;
 }
示例#4
0
        void OnDestroy()
        {
            m_instace = null;

            //TODO GuideBtnManager.Instance.DelGuideButton(m_guideBtnID);
        }