private void UpdateMessage()
    {
        //IL_0039: Unknown result type (might be due to invalid IL or missing references)
        //IL_0059: Unknown result type (might be due to invalid IL or missing references)
        //IL_0074: Unknown result type (might be due to invalid IL or missing references)
        switch (m_State)
        {
        case MessageState.CollectItemImg:
        case MessageState.CollectItem:
            if (UIInGameFieldMenu.IsValid())
            {
                UIInGameFieldMenu.I.SetDisableButtons(true);
                UIInGameFieldMenu.I.get_gameObject().SetActive(false);
            }
            break;

        case MessageState.BackHome:
            if (UIInGameFieldMenu.IsValid())
            {
                tweenEndCtrl.get_gameObject().SetActive(true);
                UIInGameFieldMenu.I.SetDisableButtons(true);
                UIInGameFieldMenu.I.get_gameObject().SetActive(true);
                UIInGameFieldMenu.I.SetEnableButton("BTN_REQUEST", true);
            }
            break;
        }
    }
Exemplo n.º 2
0
 public void ShowSplendid()
 {
     //IL_0006: Unknown result type (might be due to invalid IL or missing references)
     splendid.get_gameObject().SetActive(true);
     splendid.Reset();
     SoundManager.PlayOneShotUISE(SE_ID_COMPLETE);
     splendid.Play(true, null);
 }
 public void OpenTutorialFirstDelivery()
 {
     tweenStratCtrl.Reset();
     tweenEndCtrl.Reset();
     tweenStratCtrl.Play(true, delegate
     {
         SetState(MessageState.CollectItemImg);
         tweenEndCtrl.Play(true, delegate
         {
             //IL_0006: Unknown result type (might be due to invalid IL or missing references)
             //IL_0017: Unknown result type (might be due to invalid IL or missing references)
             tweenStratCtrl.get_gameObject().SetActive(false);
             tweenEndCtrl.get_gameObject().SetActive(false);
         });
     });
     skilBtn.onClick.Clear();
     skilBtn.onClick.Add(new EventDelegate(delegate
     {
         tweenStratCtrl.Skip(true);
     }));
 }
 public void Play(ENEMY_TYPE type, int rareBossType = 0, bool isFieldBoss = false)
 {
     //IL_0001: Unknown result type (might be due to invalid IL or missing references)
     //IL_000d: Unknown result type (might be due to invalid IL or missing references)
     //IL_001c: Expected O, but got Unknown
     //IL_003f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0061: Unknown result type (might be due to invalid IL or missing references)
     //IL_0083: Unknown result type (might be due to invalid IL or missing references)
     //IL_0094: Unknown result type (might be due to invalid IL or missing references)
     //IL_00e2: Unknown result type (might be due to invalid IL or missing references)
     //IL_0105: Unknown result type (might be due to invalid IL or missing references)
     //IL_0127: Unknown result type (might be due to invalid IL or missing references)
     //IL_0149: Unknown result type (might be due to invalid IL or missing references)
     //IL_016b: Unknown result type (might be due to invalid IL or missing references)
     //IL_01b6: Unknown result type (might be due to invalid IL or missing references)
     //IL_01d8: Unknown result type (might be due to invalid IL or missing references)
     //IL_01fa: Unknown result type (might be due to invalid IL or missing references)
     //IL_020b: Unknown result type (might be due to invalid IL or missing references)
     //IL_0259: Unknown result type (might be due to invalid IL or missing references)
     this.get_gameObject().SetActive(true);
     TweenAlpha.Begin(this.get_gameObject(), 0f, 1f);
     if (isFieldBoss)
     {
         if (rareBossTweenCtrl != null)
         {
             rareBossTweenCtrl.get_gameObject().SetActive(false);
         }
         if (tweenCtrl != null)
         {
             tweenCtrl.get_gameObject().SetActive(false);
         }
         if (fieldEnemyRareTweenCtrl != null)
         {
             fieldEnemyRareTweenCtrl.get_gameObject().SetActive(false);
         }
         fieldEnemyBossTweenCtrl.get_gameObject().SetActive(true);
         fieldEnemyBossTweenCtrl.Reset();
         fieldEnemyBossTweenCtrl.Play(true, null);
         SoundManager.PlayOneshotJingle(40000031, null, null);
         int i = 0;
         for (int num = effect.Length; i < num; i++)
         {
             this.StartCoroutine(Direction(effect[i]));
         }
     }
     else if (rareBossType > 0)
     {
         tweenCtrl.get_gameObject().SetActive(false);
         if (fieldEnemyBossTweenCtrl != null)
         {
             fieldEnemyBossTweenCtrl.get_gameObject().SetActive(false);
         }
         if (fieldEnemyRareTweenCtrl != null)
         {
             fieldEnemyRareTweenCtrl.get_gameObject().SetActive(false);
         }
         if (rareBossTweenCtrl != null)
         {
             rareBossTweenCtrl.get_gameObject().SetActive(true);
             rareBossTweenCtrl.Reset();
             rareBossTweenCtrl.Play(true, null);
         }
         SoundManager.PlayOneshotJingle(40000163, null, null);
     }
     else
     {
         if (rareBossTweenCtrl != null)
         {
             rareBossTweenCtrl.get_gameObject().SetActive(false);
         }
         if (fieldEnemyBossTweenCtrl != null)
         {
             fieldEnemyBossTweenCtrl.get_gameObject().SetActive(false);
         }
         if (fieldEnemyRareTweenCtrl != null)
         {
             fieldEnemyRareTweenCtrl.get_gameObject().SetActive(false);
         }
         tweenCtrl.get_gameObject().SetActive(true);
         tweenCtrl.Reset();
         tweenCtrl.Play(true, null);
         SoundManager.PlayOneshotJingle(40000031, null, null);
         int j = 0;
         for (int num2 = effect.Length; j < num2; j++)
         {
             this.StartCoroutine(Direction(effect[j]));
         }
     }
     SoundManager.RequestBGM(12, true);
 }
Exemplo n.º 5
0
    protected override void UpdateParam()
    {
        //IL_0017: Unknown result type (might be due to invalid IL or missing references)
        //IL_002d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0033: Expected O, but got Unknown
        //IL_004c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0052: Expected O, but got Unknown
        //IL_005e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0064: Expected O, but got Unknown
        //IL_0084: Unknown result type (might be due to invalid IL or missing references)
        //IL_008a: Unknown result type (might be due to invalid IL or missing references)
        //IL_008f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0094: Unknown result type (might be due to invalid IL or missing references)
        //IL_0099: Unknown result type (might be due to invalid IL or missing references)
        //IL_00c9: Unknown result type (might be due to invalid IL or missing references)
        //IL_00ca: Unknown result type (might be due to invalid IL or missing references)
        //IL_015c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0162: Expected O, but got Unknown
        //IL_0180: Unknown result type (might be due to invalid IL or missing references)
        //IL_0186: Expected O, but got Unknown
        //IL_019f: Unknown result type (might be due to invalid IL or missing references)
        //IL_01a5: Expected O, but got Unknown
        //IL_01b1: Unknown result type (might be due to invalid IL or missing references)
        //IL_01b7: Expected O, but got Unknown
        //IL_01c7: Unknown result type (might be due to invalid IL or missing references)
        //IL_01c8: Unknown result type (might be due to invalid IL or missing references)
        //IL_01cd: Unknown result type (might be due to invalid IL or missing references)
        //IL_01d5: Unknown result type (might be due to invalid IL or missing references)
        //IL_01da: Unknown result type (might be due to invalid IL or missing references)
        //IL_01dc: Unknown result type (might be due to invalid IL or missing references)
        //IL_01e1: Unknown result type (might be due to invalid IL or missing references)
        //IL_01fa: Unknown result type (might be due to invalid IL or missing references)
        //IL_0212: Unknown result type (might be due to invalid IL or missing references)
        //IL_0213: Unknown result type (might be due to invalid IL or missing references)
        //IL_0214: Unknown result type (might be due to invalid IL or missing references)
        //IL_0219: Unknown result type (might be due to invalid IL or missing references)
        //IL_021b: Unknown result type (might be due to invalid IL or missing references)
        //IL_021d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0231: Unknown result type (might be due to invalid IL or missing references)
        //IL_0236: Unknown result type (might be due to invalid IL or missing references)
        //IL_0252: Unknown result type (might be due to invalid IL or missing references)
        //IL_0276: Unknown result type (might be due to invalid IL or missing references)
        //IL_03cd: Unknown result type (might be due to invalid IL or missing references)
        //IL_03d3: Expected O, but got Unknown
        //IL_03f1: Unknown result type (might be due to invalid IL or missing references)
        //IL_03f7: Expected O, but got Unknown
        if (portal == null || !portal.get_gameObject().get_activeSelf())
        {
            SetActiveSafe(statusSprite.get_gameObject(), false);
            SetActiveSafe(arrow, false);
            SetActiveSafe(addTween.get_gameObject(), false);
            SetActiveSafe(fullTween.get_gameObject(), false);
        }
        else
        {
            Vector3 screenUIPosition = Utility.GetScreenUIPosition(MonoBehaviourSingleton <AppMain> .I.mainCamera, MonoBehaviourSingleton <InGameCameraManager> .I.cameraTransform, portalTransform.get_position() + offset);
            screenZ            = screenUIPosition.z;
            screenUIPosition.z = 0f;
            float   num  = 1f / MonoBehaviourSingleton <UIManager> .I.uiRoot.pixelSizeAdjustment;
            Vector3 val  = screenUIPosition;
            bool    flag = false;
            float   num2 = (float)Screen.get_width();
            if (screenUIPosition.x < screenSideOffset * num)
            {
                screenUIPosition.x = screenSideOffset * num;
                flag = true;
            }
            else if (screenUIPosition.x > num2 - screenSideOffset * num)
            {
                screenUIPosition.x = num2 - screenSideOffset * num;
                flag = true;
            }
            if (screenUIPosition.y < screenBottomOffset * num)
            {
                screenUIPosition.y = screenBottomOffset * num;
                flag = true;
            }
            if (flag)
            {
                SetActiveSafe(statusSprite.get_gameObject(), true);
                SetActiveSafe(arrow, true);
                Vector3 val2 = MonoBehaviourSingleton <UIManager> .I.uiCamera.ScreenToWorldPoint(screenUIPosition);

                Vector3 val3 = transform.get_position() - val2;
                if (val3.get_sqrMagnitude() >= 2E-05f)
                {
                    transform.set_position(val2);
                }
                if (arrowTransform != null)
                {
                    Vector3 val4 = val - screenUIPosition;
                    if (val4 != Vector3.get_zero())
                    {
                        float num3 = 90f - Vector3.Angle(Vector3.get_right(), val4);
                        arrowTransform.set_eulerAngles(new Vector3(0f, 0f, num3));
                    }
                    else
                    {
                        arrowTransform.set_eulerAngles(new Vector3(0f, 0f, 0f));
                    }
                }
                bool flag2 = false;
                if (statusSprite != null)
                {
                    switch (portal.viewType)
                    {
                    case PortalObject.VIEW_TYPE.NORMAL:
                        statusSprite.spriteName = "Ingame_portal_vitalsign_blue";
                        break;

                    case PortalObject.VIEW_TYPE.NOT_TRAVELED:
                        if (portal.isFull)
                        {
                            flag2 = true;
                            statusSprite.spriteName = "Ingame_portal_vitalsign_red";
                        }
                        else
                        {
                            float num4 = (float)portal.nowPoint / (float)portal.maxPoint;
                            int   num5 = (int)(num4 * (float)MonoBehaviourSingleton <InGameSettingsManager> .I.portal.pointRankNum);
                            if (num5 >= MonoBehaviourSingleton <InGameSettingsManager> .I.portal.pointRankNum - 1)
                            {
                                num5 = MonoBehaviourSingleton <InGameSettingsManager> .I.portal.pointRankNum - 2;
                            }
                            statusSprite.spriteName = string.Format("Ingame_portal_vitalsign_red_{0}", num5.ToString("D2"));
                        }
                        break;

                    case PortalObject.VIEW_TYPE.TO_HOME:
                        statusSprite.spriteName = "Ingame_portal_vitalsign_green";
                        break;

                    case PortalObject.VIEW_TYPE.TO_HARD_MAP:
                        statusSprite.spriteName = "Ingame_portal_vitalsign_purple";
                        break;

                    case PortalObject.VIEW_TYPE.NOT_CLEAR_ORDER:
                        statusSprite.spriteName = "Ingame_portal_vitalsign_not_clear_order";
                        break;
                    }
                }
                if (flag2)
                {
                    SetActiveSafe(fullTween.get_gameObject(), true);
                    fullTween.Play(true, null);
                }
                else
                {
                    SetActiveSafe(fullTween.get_gameObject(), false);
                }
            }
            else
            {
                SetActiveSafe(statusSprite.get_gameObject(), false);
                SetActiveSafe(arrow, false);
                SetActiveSafe(addTween.get_gameObject(), false);
                SetActiveSafe(fullTween.get_gameObject(), false);
            }
        }
    }