Beispiel #1
0
 void OnClose(ButtonScript obj, object args, int param1, int param2)
 {
     OpenPanelAnimator.CloseOpenAnimation(this.panel, () => {
         Hide();
         Destroyobj();
     });
 }
Beispiel #2
0
 private void OnClose(ButtonScript obj, object args, int param1, int param2)
 {
     ArenaSystem.Instance.openPvE = false;
     OpenPanelAnimator.CloseOpenAnimation(this.panel, () => {
         Hide();
     });
 }
Beispiel #3
0
 public void OnClose(ButtonScript obj, object args, int param1, int param2)
 {
     OpenPanelAnimator.CloseOpenAnimation(this.panel, () => {
         FriendSystem.Instance().isOpenFried = false;
         Hide();
     });
 }
Beispiel #4
0
 private void OnClickClose(ButtonScript obj, object args, int param1, int param2)
 {
     _compoundPane.GetComponent <CompoundUI>().Hide();
     OpenPanelAnimator.CloseOpenAnimation(this.panel, () => {
         Hide();
     });
 }
Beispiel #5
0
//	void OnClickstate(ButtonScript obj, object args, int param1, int param2)
//	{
//		TabsSelect (0);
//		isState = true;
//		MainbabyListUI.babyObj.SetActive (true);
//		zhongzuObj.SetActive (true);
//		stateBtn.GetComponent<BoxCollider> ().enabled = false;
//		stateUI.SetActive (true);
//		if (posObj != null)
//		{
//			posObj.SetActive(false);
//		}
//		Babypdate ();
//	}
//	void OnClickProperty(ButtonScript obj, object args, int param1, int param2)
//	{
//		Babypdate ();
//		TabsSelect (1);
//		isState = false;
//		MainbabyListUI.babyObj.SetActive (false);
//		zhongzuObj.SetActive (false);
//		stateBtn.GetComponent<BoxCollider> ().enabled = false;
//		if (GamePlayer.Instance.babies_list_.Count == 0)
//			return;
//		if(posObj != null)
//		{
//			posObj.SetActive(true);
//			stateBtn.GetComponent<BoxCollider> ().enabled = true;
//		}else
//		{
//			LoadUI (UIASSETS_ID.UIASSETS_mainbabyshuxingPanel);
//		}
//		stateUI.SetActive (false);
//
//	}

    void OnClickTColse(ButtonScript obj, object args, int param1, int param2)
    {
        OpenPanelAnimator.CloseOpenAnimation(this.panel, () => {
            GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_BabyUIClose);
            Hide();
        });
    }
Beispiel #6
0
 void OnClose(ButtonScript obj, object args, int param1, int param2)
 {
     OpenPanelAnimator.CloseOpenAnimation(this.panel, () =>
     {
         if (callback_ != null)
         {
             callback_(null);
             Clear();
         }
         Hide();
     });
 }
Beispiel #7
0
 private void OnClose(ButtonScript obj, object args, int param1, int param2)
 {
     //NetConnection.Instance.stopMatching ();
     ArenaSystem.Instance.openPvP      = false;
     ArenaPvpSystem.Instance.openPvpUI = false;
     if (TeamSystem.IsTeamLeader())
     {
         NetConnection.Instance.warriorStop();
     }
     ArenaPvpSystem.Instance.PvpMatching = false;
     //NetConnection.Instance.exitPvpLobby();
     OpenPanelAnimator.CloseOpenAnimation(this.panel, () => {
         Hide();
     });
 }
Beispiel #8
0
 private void OnClose(ButtonScript obj, object args, int param1, int param2)
 {
     if (emplyoeeCellPool.Count > 0)
     {
         for (int i = 0; i < emplyoeeCellPool.Count; i++)
         {
             Destroy(emplyoeeCellPool[i]);
             emplyoeeCellPool[i] = null;
         }
         emplyoeeCellPool.Clear();
     }
     OpenPanelAnimator.CloseOpenAnimation(this.panel, () => {
         Hide();
     });
 }
Beispiel #9
0
    private void OnClose(ButtonScript obj, object args, int param1, int param2)
    {
        if (itemCellPoolList.Count > 0)
        {
            for (int i = 0; i < itemCellPoolList.Count; i++)
            {
                Destroy(itemCellPoolList[i]);
                itemCellPoolList[i] = null;
            }
            itemCellPoolList.Clear();
        }

        OpenPanelAnimator.CloseOpenAnimation(this.panel, () => {
            Hide();
        });
    }
Beispiel #10
0
    private void OnClickClose(ButtonScript obj, object args, int param1, int param2)
    {
        isOpen = false;

        OpenPanelAnimator.CloseOpenAnimation(this.panel, () => {
            if (chindCellPoolList.Count > 0)
            {
                for (int i = 0; i < chindCellPoolList.Count; i++)
                {
                    Destroy(chindCellPoolList[i]);
                    chindCellPoolList[i] = null;
                }
                chindCellPoolList.Clear();
            }
            Hide();
        });
    }