Example #1
0
 protected virtual void Start()
 {
     if (pageUp != null)
     {
         pageUp.SetEvent(this.PageUpClick);
         pageUp.myButton.isEnabled = false;
     }
     if (pageDown != null)
     {
         pageDown.SetEvent(this.PageDownClick);
         pageDown.myButton.isEnabled = false;
     }
     if (lblNowPage != null)
     {
         lblNowPage.text = nowPage + "/" + maxPage;
     }
 }
Example #2
0
 void Start()
 {
     warnings = PanelStatic.StaticWarnings;
     invCL    = PanelStatic.StaticBtnGameManager.invcl;
     string[] strTime = InRoom.GetInRoomInstantiate().GetMakeGoldTime().Trim().Split(';');
     string[] myTime;
     foreach (string item in strTime)
     {
         if (item != "")
         {
             myTime = item.Split(',');
             MakeGoldTimes tempTime = new MakeGoldTimes(System.DateTime.Parse(myTime[0]), System.DateTime.Parse(myTime[1]));
             listTime.Add(tempTime);
             lblMakeGoldTime.text += myTime[0] + "-" + myTime[1] + "\n";
         }
     }
     lblMakeGoldScale.text   = InRoom.GetInRoomInstantiate().GetMakeGoldScale();
     bloodScale              = float.Parse(InRoom.GetInRoomInstantiate().GetMakeGoldScale().Split(':')[0]);
     goldScale               = float.Parse(InRoom.GetInRoomInstantiate().GetMakeGoldScale().Split(':')[1]);
     lblMakeGoldAddtion.text = InRoom.GetInRoomInstantiate().GetMakeGoldAddtion().ToString() + "%";
     btnMakeGold2.SetEvent(this.OnBtnMakeGold2Click);
     btnMakeGold5.SetEvent(this.OnBtnMakeGold5Click);
     btnMakeGold10.SetEvent(this.OnBtnMakeGold10Click);
 }
Example #3
0
    // Use this for initialization

    public void Awake()
    {
        sendManager = PanelStatic.StaticSendManager;
        PanelStatic.StaticBtnGameManager.eventShowOne = this.ShowOne;
        btnTV.SetEvent(this.BtnTVCliek);
    }