コード例 #1
0
    public HistoryCard()
    {
        PlatformDependentValue <float> value2 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC     = 4.326718f,
            Tablet = 4.7f,
            Phone  = 5.4f
        };

        this.MOUSE_OVER_X_OFFSET = value2;
        value2 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC     = 1f,
            Tablet = 1.35f,
            Phone  = 1.35f
        };
        this.MOUSE_OVER_SCALE = value2;
        value2 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC     = 2.5f,
            Tablet = 2.5f,
            Phone  = 2.5f
        };
        this.X_SIZE_OF_MOUSE_OVER_CHILD = value2;
    }
コード例 #2
0
    static TavernBrawlDisplay()
    {
        PlatformDependentValue <string> value2 = new PlatformDependentValue <string>(PlatformCategory.Screen)
        {
            PC    = "TavernBrawl_Chalkboard_Default_NoBorders",
            Phone = "TavernBrawl_Chalkboard_Default_phone"
        };

        DEFAULT_CHALKBOARD_TEXTURE_NAME_NO_DECK = value2;
        value2 = new PlatformDependentValue <string>(PlatformCategory.Screen)
        {
            PC    = "TavernBrawl_Chalkboard_Default_Borders",
            Phone = "TavernBrawl_Chalkboard_Default_phone"
        };
        DEFAULT_CHALKBOARD_TEXTURE_NAME_WITH_DECK = value2;
        PlatformDependentValue <UnityEngine.Vector2> value3 = new PlatformDependentValue <UnityEngine.Vector2>(PlatformCategory.Screen)
        {
            PC    = UnityEngine.Vector2.zero,
            Phone = UnityEngine.Vector2.zero
        };

        DEFAULT_CHALKBOARD_TEXTURE_OFFSET_NO_DECK = value3;
        value3 = new PlatformDependentValue <UnityEngine.Vector2>(PlatformCategory.Screen)
        {
            PC    = UnityEngine.Vector2.zero,
            Phone = new UnityEngine.Vector2(0f, -0.389f)
        };
        DEFAULT_CHALKBOARD_TEXTURE_OFFSET_WITH_DECK = value3;
    }
コード例 #3
0
    static StoreSendToBAM()
    {
        PlatformDependentValue <string> value2 = new PlatformDependentValue <string>(PlatformCategory.OS)
        {
            PC      = "https://nydus.battle.net/WTCG/{0}/client/support/purchase?targetRegion={1}",
            iOS     = "https://nydus.battle.net/WTCG/{0}/client/support/purchase?targetRegion={1}&targetDevice=ipad",
            Android = "https://nydus.battle.net/WTCG/{0}/client/support/purchase?targetRegion={1}&targetDevice=android"
        };

        FMT_URL_PAYMENT_INFO = value2;
        value2 = new PlatformDependentValue <string>(PlatformCategory.OS)
        {
            PC      = "GLUE_STORE_PAYMENT_INFO_DETAILS",
            iOS     = "GLUE_MOBILE_STORE_PAYMENT_INFO_DETAILS_APPLE",
            Android = "GLUE_MOBILE_STORE_PAYMENT_INFO_DETAILS_ANDROID"
        };
        GLUE_STORE_PAYMENT_INFO_DETAILS = value2;
        value2 = new PlatformDependentValue <string>(PlatformCategory.OS)
        {
            PC      = "GLUE_STORE_PAYMENT_INFO_URL_DETAILS",
            iOS     = "GLUE_MOBILE_STORE_PAYMENT_INFO_URL_DETAILS",
            Android = "GLUE_MOBILE_STORE_PAYMENT_INFO_URL_DETAILS"
        };
        GLUE_STORE_PAYMENT_INFO_URL_DETAILS = value2;
        SHOW_MINI_SUMMARY_SCALE_PHONE       = new Vector3(80f, 80f, 80f);
    }
コード例 #4
0
    private void Awake()
    {
        PlatformDependentValue <float> value2 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC    = 1.2f,
            Phone = 0.8f
        };
        float x = 1.25f * value2;

        this.START_SCALE       = new Vector3(0.01f, 0.01f, 0.01f);
        this.END_SCALE         = new Vector3(x, x, x);
        this.AFTER_PUNCH_SCALE = new Vector3((float)value2, (float)value2, (float)value2);
        for (int i = 0; i < 5; i++)
        {
            this.m_stars.Add((RankChangeStar)GameUtils.Instantiate(this.m_starPrefab, base.gameObject, false));
            this.m_chestStars.Add((RankChangeStar)GameUtils.Instantiate(this.m_starPrefab, base.gameObject, false));
        }
        for (int j = 0; j < this.m_chestStars.Count; j++)
        {
            this.m_chestStars[j].GetComponent <UberFloaty>().enabled = true;
            this.m_chestStars[j].gameObject.SetActive(false);
        }
        if (UniversalInputManager.UsePhoneUI != null)
        {
            this.m_name.Width *= 1.2f;
        }
        this.m_winStreakParent.SetActive(false);
        this.m_medalContainer.SetActive(false);
        this.m_debugClickCatcher.gameObject.SetActive(false);
    }
コード例 #5
0
    public static IntPtr LoadPlugin(string fileName, bool handleError = true)
    {
        PlatformDependentValue <string> value2 = new PlatformDependentValue <string>(PlatformCategory.OS)
        {
            PC      = "Hearthstone_Data/Plugins/{0}",
            Mac     = "Hearthstone.app/Contents/Plugins/{0}.bundle/Contents/MacOS/{0}",
            iOS     = string.Empty,
            Android = string.Empty
        };

        try
        {
            string filename = string.Format((string)value2, fileName);
            IntPtr ptr      = DLLUtils.LoadLibrary(filename);
            if ((ptr == IntPtr.Zero) && handleError)
            {
                string   str2        = Directory.GetCurrentDirectory().Replace(@"\", "/");
                string   str3        = string.Format("{0}/{1}", str2, filename);
                object[] messageArgs = new object[] { str3 };
                Error.AddDevFatal("Failed to load plugin from '{0}'", messageArgs);
                object[] objArray2 = new object[] { fileName };
                Error.AddFatalLoc("GLOBAL_ERROR_ASSET_LOAD_FAILED", objArray2);
            }
            return(ptr);
        }
        catch (Exception exception)
        {
            object[] objArray3 = new object[] { exception.Message, exception.StackTrace };
            Error.AddDevFatal("FileUtils.LoadPlugin() - Exception occurred. message={0} stackTrace={1}", objArray3);
            return(IntPtr.Zero);
        }
    }
コード例 #6
0
    static CraftingTray()
    {
        PlatformDependentValue <int> value2 = new PlatformDependentValue <int>(PlatformCategory.Screen)
        {
            PC    = 0,
            Phone = 1
        };

        MASS_DISENCHANT_MATERIAL_TO_SWITCH = value2;
    }
コード例 #7
0
 private void OnClick(UIEvent e)
 {
     if (ApplicationMgr.AllowResetFromFatalError != null)
     {
         if (this.m_redirectToStore)
         {
             PlatformDependentValue <string> value4 = new PlatformDependentValue <string>(PlatformCategory.OS)
             {
                 iOS     = "https://itunes.apple.com/app/hearthstone-heroes-warcraft/id625257520?ls=1&mt=8",
                 Android = "https://play.google.com/store/apps/details?id=com.blizzard.wtcg.hearthstone"
             };
             PlatformDependentValue <string> value2 = value4;
             value4 = new PlatformDependentValue <string>(PlatformCategory.OS)
             {
                 iOS     = "https://itunes.apple.com/cn/app/lu-shi-chuan-shuo-mo-shou/id841140063?ls=1&mt=8",
                 Android = "https://www.battlenet.com.cn/account/download/hearthstone/android?style=hearthstone"
             };
             PlatformDependentValue <string> value3 = value4;
             if (ApplicationMgr.GetAndroidStore() == AndroidStore.AMAZON)
             {
                 value2.Android = "http://www.amazon.com/gp/mas/dl/android?p=com.blizzard.wtcg.hearthstone";
             }
             if (MobileDeviceLocale.GetCurrentRegionId() == Network.BnetRegion.REGION_CN)
             {
                 value2 = value3;
             }
             Application.OpenURL((string)value2);
         }
         else
         {
             float waitDuration = (ApplicationMgr.Get().LastResetTime() + this.m_delayBeforeNextReset) - UnityEngine.Time.realtimeSinceStartup;
             Log.JMac.Print("Remaining time to wait before allowing a reconnect attempt: " + waitDuration, new object[0]);
             if (waitDuration > 0f)
             {
                 this.m_inputBlocker.RemoveEventListener(UIEventType.RELEASE, new UIEvent.Handler(this.OnClick));
                 this.m_closedSignText.Text = GameStrings.Get("GLOBAL_SPLASH_CLOSED_RECONNECTING");
                 this.m_allowClick          = false;
                 this.m_reconnectTip.gameObject.SetActive(false);
                 base.StartCoroutine(this.WaitBeforeReconnecting(waitDuration));
             }
             else
             {
                 UnityEngine.Debug.Log("resetting!");
                 this.m_inputBlocker.RemoveEventListener(UIEventType.RELEASE, new UIEvent.Handler(this.OnClick));
                 ApplicationMgr.Get().Reset();
             }
         }
     }
     else
     {
         this.m_inputBlocker.RemoveEventListener(UIEventType.RELEASE, new UIEvent.Handler(this.OnClick));
         ApplicationMgr.Get().Exit();
     }
 }
コード例 #8
0
    static HeroPickerDisplay()
    {
        PlatformDependentValue <Vector3> value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(-57.36467f, 2.4869f, -28.6f),
            Phone = new Vector3(-66.4f, 2.4869f, -28.6f)
        };

        HERO_PICKER_START_POSITION = value2;
        HERO_PICKER_END_POSITION   = new Vector3(40.6f, 2.4869f, -28.6f);
    }
コード例 #9
0
    static ZoneHand()
    {
        PlatformDependentValue <float[]> value2 = new PlatformDependentValue <float[]>(PlatformCategory.Screen)
        {
            PC     = CARD_PIXEL_WIDTHS_TABLET,
            Tablet = CARD_PIXEL_WIDTHS_TABLET,
            Phone  = CARD_PIXEL_WIDTHS_PHONE
        };

        CARD_PIXEL_WIDTHS = value2;
    }
コード例 #10
0
    public MobileHitBox()
    {
        PlatformDependentValue <bool> value2 = new PlatformDependentValue <bool>(PlatformCategory.Screen)
        {
            Tablet     = true,
            MiniTablet = true,
            Phone      = true,
            PC         = false
        };

        this.m_isMobile = value2;
    }
コード例 #11
0
    public OptionsMenu()
    {
        PlatformDependentValue <bool> value2 = new PlatformDependentValue <bool>(PlatformCategory.OS)
        {
            iOS     = true,
            Android = true,
            PC      = false,
            Mac     = false
        };

        this.LANGUAGE_SELECTION = value2;
    }
コード例 #12
0
    public GameMenu()
    {
        PlatformDependentValue <string> value2 = new PlatformDependentValue <string>(PlatformCategory.Screen)
        {
            PC    = "OptionsMenu",
            Phone = "OptionsMenu_phone"
        };

        this.OPTIONS_MENU_NAME  = value2;
        this.BUTTON_SCALE       = (Vector3)(15f * Vector3.one);
        this.BUTTON_SCALE_PHONE = (Vector3)(25f * Vector3.one);
    }
コード例 #13
0
    static Error()
    {
        PlatformDependentValue <bool> value2 = new PlatformDependentValue <bool>(PlatformCategory.OS)
        {
            PC      = false,
            Mac     = false,
            iOS     = true,
            Android = true
        };

        HAS_APP_STORE = value2;
    }
コード例 #14
0
    public SocialToastMgr()
    {
        PlatformDependentValue <Vector3> value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(235f, 1f, 235f),
            Phone = new Vector3(470f, 1f, 470f)
        };

        this.TOAST_SCALE         = value2;
        this.m_lastKnownMedal    = new Map <BnetGameAccountId, int>();
        this.m_lastOnlineTracker = new Map <int, LastOnlineTracker>();
    }
コード例 #15
0
    static SoundUtils()
    {
        PlatformDependentValue <bool> value2 = new PlatformDependentValue <bool>(PlatformCategory.OS)
        {
            PC      = true,
            Mac     = true,
            iOS     = false,
            Android = false
        };

        PlATFORM_CAN_DETECT_VOLUME = value2;
    }
コード例 #16
0
    static KeywordHelpPanel()
    {
        PlatformDependentValue <float> value2 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC    = 0.65f,
            Phone = 0.8f
        };

        HAND_SCALE = value2;
        value2     = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC    = 0.75f,
            Phone = 1.4f
        };
        GAMEPLAY_SCALE = value2;
        value2         = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC    = 0.9f,
            Phone = 1.25f
        };
        GAMEPLAY_SCALE_LARGE = value2;
        value2 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC    = 8f,
            Phone = 4.5f
        };
        BOX_SCALE = value2;
        value2    = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC    = 0.48f,
            Phone = 0.853f
        };
        HISTORY_SCALE = value2;
        value2        = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC    = 0.65f,
            Phone = 0.4f
        };
        MULLIGAN_SCALE = value2;
        value2         = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC    = 4f,
            Phone = 8f
        };
        COLLECTION_MANAGER_SCALE = value2;
        value2 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC    = 4f,
            Phone = 8f
        };
        FORGE_SCALE = value2;
    }
コード例 #17
0
    public ZoneHand()
    {
        PlatformDependentValue <float> value2 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC     = 1.333333f,
            Tablet = 1.333333f,
            Phone  = 1.775f
        };

        this.BASELINE_ASPECT_RATIO = value2;
        this.lastMousedOver        = -1;
        this.m_doNotUpdateLayout   = true;
    }
コード例 #18
0
    public CollectionActorPool()
    {
        PlatformDependentValue <bool> value2 = new PlatformDependentValue <bool>(PlatformCategory.OS)
        {
            PC      = false,
            Mac     = false,
            iOS     = false,
            Android = false
        };

        this.PRELOAD_ACTORS = value2;
        this.m_actorMap     = new Map <ActorKey, List <Actor> >();
        this.m_actorKeyMap  = new Map <Actor, ActorKey>();
    }
コード例 #19
0
    static AdventureScene()
    {
        PlatformDependentValue <Vector3> value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(10f, 10f, 10f),
            Phone = new Vector3(7f, 7f, 7f)
        };

        REWARD_SCALE = value2;
        value2       = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(10.2f, 10.2f, 10.2f),
            Phone = new Vector3(7.1f, 7.1f, 7.1f)
        };
        REWARD_PUNCH_SCALE = value2;
    }
コード例 #20
0
    static Login()
    {
        PlatformDependentValue <Vector3> value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(15f, 15f, 15f),
            Phone = new Vector3(8f, 8f, 8f)
        };

        REWARD_SCALE = value2;
        value2       = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(15.1f, 15.1f, 15.1f),
            Phone = new Vector3(8.1f, 8.1f, 8.1f)
        };
        REWARD_PUNCH_SCALE = value2;
        s_instance         = null;
    }
コード例 #21
0
    public WebLoginCanvas()
    {
        PlatformDependentValue <bool> value2 = new PlatformDependentValue <bool>(PlatformCategory.Screen)
        {
            PC     = true,
            Tablet = true,
            Phone  = false
        };

        this.KOBOLD_SHOWN_ON_ACCOUNT_CREATION = value2;
        value2 = new PlatformDependentValue <bool>(PlatformCategory.Screen)
        {
            PC     = true,
            Tablet = true,
            Phone  = false
        };
        this.USE_REGION_DROPDOWN = value2;
    }
コード例 #22
0
    static Localization()
    {
        Map <Locale, Locale[]> map = new Map <Locale, Locale[]>();

        map.Add(Locale.enUS, new Locale[1]);
        Locale[] localeArray1 = new Locale[2];
        localeArray1[0] = Locale.enGB;
        map.Add(Locale.enGB, localeArray1);
        Locale[] localeArray2 = new Locale[] { Locale.frFR };
        map.Add(Locale.frFR, localeArray2);
        Locale[] localeArray3 = new Locale[] { Locale.deDE };
        map.Add(Locale.deDE, localeArray3);
        Locale[] localeArray4 = new Locale[] { Locale.koKR };
        map.Add(Locale.koKR, localeArray4);
        Locale[] localeArray5 = new Locale[] { Locale.esES };
        map.Add(Locale.esES, localeArray5);
        Locale[] localeArray6 = new Locale[] { Locale.esMX };
        map.Add(Locale.esMX, localeArray6);
        Locale[] localeArray7 = new Locale[] { Locale.ruRU };
        map.Add(Locale.ruRU, localeArray7);
        Locale[] localeArray8 = new Locale[] { Locale.zhTW };
        map.Add(Locale.zhTW, localeArray8);
        Locale[] localeArray9 = new Locale[] { Locale.zhCN };
        map.Add(Locale.zhCN, localeArray9);
        Locale[] localeArray10 = new Locale[] { Locale.itIT };
        map.Add(Locale.itIT, localeArray10);
        Locale[] localeArray11 = new Locale[] { Locale.ptBR };
        map.Add(Locale.ptBR, localeArray11);
        Locale[] localeArray12 = new Locale[] { Locale.plPL };
        map.Add(Locale.plPL, localeArray12);
        Locale[] localeArray13 = new Locale[] { Locale.jaJP };
        map.Add(Locale.jaJP, localeArray13);
        LOAD_ORDERS = map;
        s_instance  = new Localization();
        PlatformDependentValue <bool> value2 = new PlatformDependentValue <bool>(PlatformCategory.OS)
        {
            iOS     = true,
            Android = true,
            PC      = false,
            Mac     = false
        };

        LOCALE_FROM_OPTIONS = value2;
    }
コード例 #23
0
    static UniversalInputManager()
    {
        PlatformDependentValue <bool> value2 = new PlatformDependentValue <bool>(PlatformCategory.Input)
        {
            Mouse = false,
            Touch = true
        };

        IsTouchDevice           = value2;
        HIT_TEST_PRIORITY_ORDER = new GameLayer[] { GameLayer.IgnoreFullScreenEffects, GameLayer.BackgroundUI, GameLayer.PerspectiveUI, GameLayer.CameraMask, GameLayer.UI, GameLayer.BattleNet, GameLayer.BattleNetFriendList, GameLayer.BattleNetChat, GameLayer.BattleNetDialog };
        IsIMEEverUsed           = false;
        value2 = new PlatformDependentValue <bool>(PlatformCategory.Screen)
        {
            Phone  = true,
            Tablet = false,
            PC     = false
        };
        UsePhoneUI = value2;
    }
コード例 #24
0
    static ApplicationMgr()
    {
        PlatformDependentValue <bool> value2 = new PlatformDependentValue <bool>(PlatformCategory.OS)
        {
            PC      = true,
            Mac     = true,
            Android = false,
            iOS     = false
        };

        CanQuitGame = value2;
        value2      = new PlatformDependentValue <bool>(PlatformCategory.OS)
        {
            PC      = false,
            Mac     = false,
            Android = true,
            iOS     = true
        };
        AllowResetFromFatalError = value2;
    }
コード例 #25
0
    public BigCard()
    {
        PlatformDependentValue <float> value2 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC         = 1f,
            Tablet     = 1f,
            Phone      = 1.3f,
            MiniTablet = 1f
        };

        this.PLATFORM_SCALING_FACTOR = value2;
        value2 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC         = 1f,
            Tablet     = 1f,
            Phone      = 1.5f,
            MiniTablet = 1f
        };
        this.ENCHANTMENT_SCALING_FACTOR = value2;
    }
コード例 #26
0
    static EndGameScreen()
    {
        PlatformDependentValue <Vector3> value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = Vector3.one,
            Phone = new Vector3(0.8f, 0.8f, 0.8f)
        };

        REWARD_SCALE = value2;
        value2       = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(1.2f, 1.2f, 1.2f),
            Phone = new Vector3(1.25f, 1.25f, 1.25f)
        };
        REWARD_PUNCH_SCALE = value2;
        value2             = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(-7.628078f, 8.371922f, -3.883112f),
            Phone = new Vector3(-7.628078f, 8.371922f, -3.94f)
        };
        REWARD_LOCAL_POS = value2;
    }
コード例 #27
0
    static CollectionDraggableCardVisual()
    {
        PlatformDependentValue <Vector3> value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(0.6f, 0.6f, 0.6f),
            Phone = new Vector3(0.9f, 0.9f, 0.9f)
        };

        DECK_TILE_LOCAL_SCALE = (Vector3)value2;
        value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(6f, 6f, 6f),
            Phone = new Vector3(6.9f, 6.9f, 6.9f)
        };
        CARD_ACTOR_LOCAL_SCALE = (Vector3)value2;
        value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(7.5f, 7.5f, 7.5f),
            Phone = new Vector3(8.2f, 8.2f, 8.2f)
        };
        HERO_SKIN_ACTOR_LOCAL_SCALE = (Vector3)value2;
    }
コード例 #28
0
    static TargetReticleManager()
    {
        PlatformDependentValue <bool> value2 = new PlatformDependentValue <bool>(PlatformCategory.Input)
        {
            Mouse = false,
            Touch = true
        };

        SHOW_DAMAGE_INDICATOR_ON_ENTITY = value2;
        PlatformDependentValue <float> value3 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC     = 2.5f,
            Tablet = 3.75f
        };

        DAMAGE_INDICATOR_SCALE = value3;
        value3 = new PlatformDependentValue <float>(PlatformCategory.Screen)
        {
            PC     = 0.75f,
            Tablet = -1.2f
        };
        DAMAGE_INDICATOR_Z_OFFSET = value3;
    }
コード例 #29
0
    public TutorialProgressScreen()
    {
        Map <TutorialProgress, ScenarioDbId> map = new Map <TutorialProgress, ScenarioDbId>();

        map.Add(TutorialProgress.NOTHING_COMPLETE, ScenarioDbId.TUTORIAL_HOGGER);
        map.Add(TutorialProgress.HOGGER_COMPLETE, ScenarioDbId.TUTORIAL_MILLHOUSE);
        map.Add(TutorialProgress.MILLHOUSE_COMPLETE, ScenarioDbId.TUTORIAL_CHO);
        map.Add(TutorialProgress.CHO_COMPLETE, ScenarioDbId.TUTORIAL_MUKLA);
        map.Add(TutorialProgress.MUKLA_COMPLETE, ScenarioDbId.TUTORIAL_NESINGWARY);
        map.Add(TutorialProgress.NESINGWARY_COMPLETE, ScenarioDbId.TUTORIAL_ILLIDAN);
        this.m_progressToNextMissionIdMap = map;
        Map <ScenarioDbId, LessonAsset> map2 = new Map <ScenarioDbId, LessonAsset>();

        map2.Add(ScenarioDbId.TUTORIAL_HOGGER, null);
        LessonAsset asset = new LessonAsset {
            m_asset = "Tutorial_Lesson1"
        };

        map2.Add(ScenarioDbId.TUTORIAL_MILLHOUSE, asset);
        asset = new LessonAsset {
            m_asset      = "Tutorial_Lesson2",
            m_phoneAsset = "Tutorial_Lesson2_phone"
        };
        map2.Add(ScenarioDbId.TUTORIAL_CHO, asset);
        asset = new LessonAsset {
            m_asset = "Tutorial_Lesson3"
        };
        map2.Add(ScenarioDbId.TUTORIAL_MUKLA, asset);
        asset = new LessonAsset {
            m_asset = "Tutorial_Lesson4"
        };
        map2.Add(ScenarioDbId.TUTORIAL_NESINGWARY, asset);
        asset = new LessonAsset {
            m_asset = "Tutorial_Lesson5"
        };
        map2.Add(ScenarioDbId.TUTORIAL_ILLIDAN, asset);
        this.m_missionIdToLessonAssetMap = map2;
        this.m_sortedMissionRecords      = new List <DbfRecord>();
        this.START_SCALE = new Vector3(0.5f, 0.5f, 0.5f);
        PlatformDependentValue <Vector3> value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(7f, 1f, 7f),
            Phone = new Vector3(6.1f, 1f, 6.1f)
        };

        this.FINAL_SCALE = (Vector3)value2;
        value2           = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(92.5f, 14f, 92.5f),
            Phone = new Vector3(106f, 16f, 106f)
        };
        this.FINAL_SCALE_OVER_BOX = (Vector3)value2;
        value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(-8f, 5f, -5f),
            Phone = new Vector3(-8f, 5f, -4.58f)
        };
        this.FINAL_POS = value2;
        value2         = new PlatformDependentValue <Vector3>(PlatformCategory.Screen)
        {
            PC    = new Vector3(0f, 5f, -0.2f),
            Phone = new Vector3(0f, 5f, -2.06f)
        };
        this.FINAL_POS_OVER_BOX = value2;
    }
コード例 #30
0
 static UniversalInputManager()
 {
     GameLayer[] gameLayerArray = new GameLayer[11];
     int index1 = 0;
     int num1 = 13;
     gameLayerArray[index1] = (GameLayer) num1;
     int index2 = 1;
     int num2 = 16;
     gameLayerArray[index2] = (GameLayer) num2;
     int index3 = 2;
     int num3 = 19;
     gameLayerArray[index3] = (GameLayer) num3;
     int index4 = 3;
     int num4 = 27;
     gameLayerArray[index4] = (GameLayer) num4;
     int index5 = 4;
     int num5 = 31;
     gameLayerArray[index5] = (GameLayer) num5;
     int index6 = 5;
     int num6 = 18;
     gameLayerArray[index6] = (GameLayer) num6;
     int index7 = 6;
     int num7 = 24;
     gameLayerArray[index7] = (GameLayer) num7;
     int index8 = 7;
     int num8 = 25;
     gameLayerArray[index8] = (GameLayer) num8;
     int index9 = 8;
     int num9 = 26;
     gameLayerArray[index9] = (GameLayer) num9;
     int index10 = 9;
     int num10 = 29;
     gameLayerArray[index10] = (GameLayer) num10;
     int index11 = 10;
     int num11 = 17;
     gameLayerArray[index11] = (GameLayer) num11;
     //UniversalInputManager.HIT_TEST_PRIORITY_ORDER = gameLayerArray;
     UniversalInputManager.IsIMEEverUsed = false;
     UniversalInputManager.UsePhoneUI = new PlatformDependentValue<bool>(PlatformCategory.Screen)
     {
       Phone = true,
       Tablet = false,
       PC = false
     };
 }