Beispiel #1
0
        private void ResetHowToUI(FishingManager.FishingScene _scene)
        {
            switch (_scene)
            {
            case FishingManager.FishingScene.SelectFood:
                this.SetActive((Component)this.howToGroup, this.displayGuide);
                this.SetActiveHowToElement(3);
                FishingHowToUI[] howToElements1 = this.howToElements;
                this.SetFishingHowToUI(howToElements1[0], "釣る", FishingUI.MouseInputType.Left);
                this.SetFishingHowToUI(howToElements1[1], "やめる", FishingUI.MouseInputType.Right);
                this.SetFishingHowToUI(howToElements1[2], "エサ変更", FishingUI.MouseInputType.Wheel);
                break;

            case FishingManager.FishingScene.WaitHit:
                this.SetActive((Component)this.howToGroup, this.displayGuide);
                this.SetActiveHowToElement(2);
                FishingHowToUI[] howToElements2 = this.howToElements;
                this.SetFishingHowToUI(howToElements2[0], "ウキの移動", FishingUI.MouseInputType.Move);
                this.SetFishingHowToUI(howToElements2[1], "もどる", FishingUI.MouseInputType.Right);
                break;

            case FishingManager.FishingScene.Fishing:
                this.SetActive((Component)this.howToGroup, this.displayGuide);
                this.SetActiveHowToElement(1);
                this.SetFishingHowToUI(this.howToElements[0], "力の方向", FishingUI.MouseInputType.Move);
                break;

            default:
                this.SetActive((Component)this.howToGroup, false);
                break;
            }
        }
Beispiel #2
0
        private void ResetFishFoodTypeUI(FishingManager.FishingScene _scene)
        {
            switch (_scene)
            {
            case FishingManager.FishingScene.SelectFood:
            case FishingManager.FishingScene.StartMotion:
            case FishingManager.FishingScene.WaitHit:
            case FishingManager.FishingScene.Fishing:
            case FishingManager.FishingScene.Success:
            case FishingManager.FishingScene.Failure:
                this.SetActive((Component)this.fishFoodTypeGroup, true);
                break;

            default:
                this.SetActive((Component)this.fishFoodTypeGroup, false);
                break;
            }
        }
Beispiel #3
0
        public void ChangeFishScene(FishingManager.FishingScene _scene)
        {
            if (_scene == FishingManager.FishingScene.None)
            {
                return;
            }
            this.CloseAllCanvas();
            switch (_scene)
            {
            case FishingManager.FishingScene.SelectFood:
                this.StartSelectFood();
                break;

            case FishingManager.FishingScene.WaitHit:
                this.StartWaitHit();
                break;

            case FishingManager.FishingScene.Fishing:
                this.StartFishing();
                this.StartDrawHitText();
                break;
            }
            this.ApplyFishScene(_scene);
        }
Beispiel #4
0
 public void ApplyFishScene(FishingManager.FishingScene _scene)
 {
     this.ResetHowToUI(_scene);
     this.ResetFishFoodTypeUI(_scene);
 }