Exemple #1
0
 void Awake()
 {
     if (UI.MainUI.MainUIController.Instance.IsShowCommonTool)
     {
         CreatObjectToNGUI.InstantiateObj(CommonToolPrefab, transform);
     }
     m_instace = this;
     //MyUICamera = UICamera.currentCamera;
 }
Exemple #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);
         }
     }
 }
Exemple #3
0
 public void Init(PackInfo_V3 myParent)
 {
     this.MyParent = myParent;
 }
Exemple #4
0
        void OnDestroy()
        {
            m_instace = null;

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