Esempio n. 1
0
 // Token: 0x06000286 RID: 646 RVA: 0x000099B0 File Offset: 0x00007DB0
 public void PanelUpDate()
 {
     if (SuperGameMaster.GetHome())
     {
         base.GetComponent <FlickCheaker>().FlickUpdate();
     }
 }
Esempio n. 2
0
 // Token: 0x06000293 RID: 659 RVA: 0x00009E94 File Offset: 0x00008294
 public void Enable()
 {
     if (!this.DeskPanel)
     {
         this.tmpBagList = SuperGameMaster.GetBagList_virtual();
         if (this.tmpBagList.Count == 0)
         {
             this.tmpBagList = SuperGameMaster.GetBagList();
         }
     }
     else
     {
         this.tmpBagList = SuperGameMaster.GetDeskList_virtual();
         if (this.tmpBagList.Count == 0)
         {
             this.tmpBagList = SuperGameMaster.GetDeskList();
         }
     }
     this.SetPanelButton();
     if (!this.DeskPanel)
     {
         this.ChangeBtnEnable(SuperGameMaster.GetStandby());
     }
     else
     {
         this.ResetBtnEnableCheck();
     }
     this.ChangeButton.SetActive(SuperGameMaster.GetHome());
 }
Esempio n. 3
0
 // Token: 0x060004C2 RID: 1218 RVA: 0x00021C24 File Offset: 0x00020024
 public override void Master_Start()
 {
     this.UIMaster.GetComponent <UIMaster>().setFadeIn(0.25f);
     if (SuperGameMaster.GetHome())
     {
         this.BackRenderer.sprite = this.InFrogSprite;
     }
     SuperGameMaster.tutorial.StartTutorial(base.gameObject);
 }
Esempio n. 4
0
 // Token: 0x06000543 RID: 1347 RVA: 0x00022AFC File Offset: 0x00020EFC
 public override void UI_Start()
 {
     this.BagDeskUI.GetComponent <BagDeskPanels>().CheckEmpty();
     if (SuperGameMaster.GetHome() && SuperGameMaster.tutorial.TutorialComplete())
     {
         this.FrogStateUI.GetComponent <FrogStatePanel>().CheckGetAchive();
         this.FrogStateUI.GetComponent <FrogStatePanel>().GetAchiveDisp();
     }
     this.BackFunc();
 }
Esempio n. 5
0
 // Token: 0x0600027B RID: 635 RVA: 0x00009688 File Offset: 0x00007A88
 public void CreateCheck()
 {
     if (SuperGameMaster.GetHome())
     {
         base.gameObject.SetActive(true);
         this.pattern = SuperGameMaster.GetFrogMotion();
         if (this.pattern == -1)
         {
             this.pattern = UnityEngine.Random.RandomRange(0, Define.FrogPatternMax);
             SuperGameMaster.SetFrogMotion(this.pattern);
         }
         List <string> list = Define.Frogpattern[this.pattern];
         int           num  = (43200 - SuperGameMaster.GetRestTime()) / 3600;
         if (num < 0)
         {
             num = 0;
         }
         if (num >= list.Count)
         {
             num = list.Count - 1;
         }
         int num2 = Define.FrogMotionNum[list[num]];
         base.transform.position = Define.FrogMotionPos[num2];
         base.GetComponent <AnmAnimationObj>().SetUpAniAnimation(Define.FrogMotionName[num2]);
         base.GetComponent <BoxCollider2D>().offset = Define.FrogHitOffset[num2];
         base.GetComponent <BoxCollider2D>().size   = Define.FrogHitSize[num2];
         this.CandleObj.SetActive(true);
         this.CandleObj.GetComponent <AnmAnimationObj>().SetUpAniAnimation();
         this.CandleObj_2.SetActive(true);
         this.CandleObj_2.GetComponent <AnmAnimationObj>().SetUpAniAnimation();
         this.Bousi.SetActive(true);
         this.Bousi.GetComponent <AnmAnimationObj>().SetUpAniAnimation();
         Debug.Log(string.Concat(new object[]
         {
             "pattern = ",
             this.pattern,
             " / span = ",
             num,
             " [",
             num2,
             "]"
         }));
     }
     else
     {
         base.gameObject.SetActive(false);
     }
 }
Esempio n. 6
0
 // Token: 0x06000287 RID: 647 RVA: 0x000099C8 File Offset: 0x00007DC8
 public void OpenPanels()
 {
     base.gameObject.SetActive(true);
     this.BagPanelUI.GetComponent <BagPanel>().Enable();
     this.DeskPanelUI.GetComponent <BagPanel>().Enable();
     base.GetComponentInParent <UIMaster>().freezeObject(true);
     base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0.3f));
     base.GetComponent <FlickCheaker>().FlickInit();
     if (!SuperGameMaster.GetHome())
     {
         base.GetComponent <Animator>().SetTrigger("StartDeskTrigger");
         this.CheckDeskHelp();
     }
     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Popup"]);
     this.BackFunc();
 }
Esempio n. 7
0
 // Token: 0x0600038A RID: 906 RVA: 0x00014F24 File Offset: 0x00013324
 public void LoadResult()
 {
     this.InfoButton.SetActive(true);
     this.InfoButtonPage         = 0;
     this.InfoButtonImage.sprite = this.LabelSprites[0];
     if (SuperGameMaster.GetHome())
     {
         this.InfoButtonText.GetComponent <Text>().text = SuperGameMaster.GetFrogName() + "が\n帰っています";
     }
     else
     {
         this.InfoButtonText.GetComponent <Text>().text = SuperGameMaster.GetFrogName() + "が\n帰っていたようです";
     }
     this.nowPage = 0;
     this.pageMax = 0;
     this.TravelPanel.transform.localPosition = Vector3.zero;
     while (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.BackHome) != -1)
     {
         int index = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.BackHome);
         EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt(index);
         int num  = eventTimerFormat.evtValue[1];
         int num2 = SuperGameMaster.get_Flag(Flag.Type.TRAVEL_TIMEMIN);
         int num3 = SuperGameMaster.get_Flag(Flag.Type.TRAVEL_TIMEMAX);
         if (num2 == 0)
         {
             SuperGameMaster.set_Flag(Flag.Type.TRAVEL_TIMEMIN, num);
         }
         if (num2 > num)
         {
             SuperGameMaster.set_Flag(Flag.Type.TRAVEL_TIMEMIN, num);
         }
         if (num3 < num)
         {
             SuperGameMaster.set_Flag(Flag.Type.TRAVEL_TIMEMAX, num);
         }
         bool success = false;
         if (eventTimerFormat.evtValue[0] == 0)
         {
             success = true;
         }
         List <int> list = new List <int>(eventTimerFormat.evtValue);
         list.RemoveAt(0);
         list.RemoveAt(0);
         Vector3 position = new Vector3(this.TravelResultPref.transform.localPosition.x, this.TravelResultPref.transform.localPosition.y, 0f);
         position.x += (float)(this.pageWidth * this.pageMax);
         GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.TravelResultPref, position, Quaternion.identity);
         gameObject.transform.SetParent(this.TravelPanel.GetComponent <RectTransform>(), false);
         gameObject.GetComponent <TravelResultPanel>().Controller = base.gameObject;
         gameObject.GetComponent <TravelResultPanel>().CreateResult(success, eventTimerFormat.id, new List <int>(list), eventTimerFormat.evtId);
         SuperGameMaster.getCloverPoint(list[0]);
         SuperGameMaster.GetTicket(list[1]);
         list.RemoveAt(0);
         list.RemoveAt(0);
         for (int i = 0; i < list.Count; i += 2)
         {
             SuperGameMaster.GetItem(list[i], list[i + 1]);
         }
         SuperGameMaster.evtMgr.delete_ActEvt_forId(eventTimerFormat.id);
         this.pageMax++;
     }
     this.S_FlickChecker.stopFlick(true);
     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Enter"]);
 }