Esempio n. 1
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);
     }
 }