Ejemplo n.º 1
0
 void OnImproveWindow()
 {
     /*
      * bool isOpened = false;
      * foreach (KeyValuePair<int, int> item in FengShuiData.Instance().WuxingInfor)
      * {
      * if (item.Value > 0)
      * {
      * isOpened = true;
      * break;
      * }
      * }
      * if (!isOpened && FengShuiData.Instance().star < 35 && !PlayerPrefs.HasKey(Obj_MyselfPlayer.GetMe().accountID.ToString() + "_FengShuiHadOpen"))
      * {
      * BoxManager.showMessageByID((int)MessageIdEnum.Msg187);
      * UIEventListener.Get(BoxManager.buttonYes).onClick += GoPVEWindow;
      * }
      * else
      */
     mainLogic.OnImproveWindow();
 }
    public void GoFengShuiWindow(GameObject button)
    {
        MainUILogic mainLogic = GameObject.Find("MainUILogic").GetComponent <MainUILogic>();

        mainLogic.OnImproveWindow();
    }