private void InitUI()
    {
        this.mAchieveCtrl.Show(false);
        this.mGoldCtrl.gameObject.SetActive(true);
        WindowUI.CloseCurrency();
        if (this.Button_Pause != null)
        {
            this.Button_Pause.gameObject.SetActive(!GameLogic.Hold.Guide.GetNeedGuide());
            this.Button_Pause.onClick = new Action(this.OnClickPause);
        }
        ReleaseModeManager mode = GameLogic.Release.Mode;

        mode.OnGotoNextRoom = (Action <RoomGenerateBase.Room>)Delegate.Combine(mode.OnGotoNextRoom, new Action <RoomGenerateBase.Room>(this.OnGotoNextRoom));
        GameLogic.Hold.Sound.PlayBackgroundMusic(SoundManager.BackgroundMusicType.eBattle);
        CameraControlM.Instance.PlayStartAnimate(null);
        if (this.mExpCtrl != null)
        {
            this.mExpCtrl.Init();
        }
        if (this.mHPCtrl != null)
        {
            this.mHPCtrl.Init();
        }
        this.mActionUpdateCtrl = new ActionUpdateCtrl();
        this.mActionUpdateCtrl.Init(false);
        this.UpdateGold();
        this.ShowBossHP(false);
        this.StartGame();
    }
예제 #2
0
    public void Init()
    {
        Vector2 sizeDelta = this.Exp_FG.sizeDelta;

        this.Exp_FG.sizeDelta   = new Vector2(0f, sizeDelta.y);
        this.Exp_Add.sizeDelta  = new Vector2(0f, sizeDelta.y);
        this.Exp_Add1.sizeDelta = new Vector2(0f, sizeDelta.y);
        this.Exp_BG.sizeDelta   = new Vector2(0f, this.Exp_BG.sizeDelta.y);
        this.Exp_FG.localScale  = Vector3.zero;
        this.Text_Level.text    = string.Empty;
        Sequence seq = TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 0.5f), new TweenCallback(this, this.< Init > m__0));

        this.mSequencePool.Add(seq);
        this.mActionUpdateCtrl = new ActionUpdateCtrl();
        this.mActionUpdateCtrl.Init(false);
    }