예제 #1
0
    private void OnTriggerEnter(Collider other)
    {
        //Fixed
        var doWorkObj   = other.GetComponent <DoWork>();
        var otherNameID = doWorkObj.nameIdObj;

        foreach (var nameId in nameIDList)
        {
            if (nameId == otherNameID)
            {
            }
        }
        //Baisc:
        var otherId = other.GetComponent <MatchID>();

        if (otherId == null)
        {
            return;
        }

        if (otherId.ID == ID || otherId.MatchMade)
        {
            OnMatch.Invoke();
        }
        else
        {
            NoMatch.Invoke();
        }
    }
예제 #2
0
 /// <summary>
 /// Change the players' turn, setting the cells as unrevealed and call the event NoMatch.
 /// </summary>
 /// <param name="i_current">The current cell cordinates were revealed.</param>
 private void areNotMatching(Point i_current)
 {
     m_Board[i_current.X, i_current.Y].m_IsRevealed           = false;
     m_Board[m_LastRevealed.X, m_LastRevealed.Y].m_IsRevealed = false;
     if (NoMatch != null)
     {
         NoMatch.Invoke(m_LastRevealed, i_current);
     }
 }
예제 #3
0
    private void OnTriggerEnter(Collider other)
    {
        var otherId = other.GetComponent <MatchID>();

        if (otherId == null)
        {
            return;
        }

        if (otherId.ID == ID || otherId.MatchMade)
        {
            OnMatch.Invoke();
        }
        else
        {
            NoMatch.Invoke();
        }
    }
예제 #4
0
        private string GetDes(string strKey)
        {
            Hashtable hs = new Hashtable();

            hs.Add("DDO_MOTU_PreOrder_Bundle", "预购捆绑");
            hs.Add("DDODruidPack", "德鲁伊包");
            hs.Add("FULL", "全部");
            hs.Add("PaidPoints", "付费用户");
            hs.Add("StormreachGuest", "试用权限");
            hs.Add("StormreachStandard", "标准权限");
            hs.Add("TREATED_AS_SUBSCRIBER", "订阅用户");
            hs.Add("XP2_CharacterSlot_Premium", "角色槽赠送");
            hs.Add("XP2_Premium", "U20赠品");

            hs.Add("eStore_Content_Catacombs", "陵墓");
            hs.Add("eStore_Content_Shantokor", "衫托克大厅(STK)");
            hs.Add("eStore_Content_TanglerootGorge", "缠根");
            hs.Add("eStore_Content_Deleras", "德墓");
            hs.Add("eStore_Content_ThreeBarrelCove", "三桶湾");
            hs.Add("eStore_Content_RuinsOfThrenal", "司莱诺废墟");
            hs.Add("eStore_Content_SorrowduskIsles", "哀暮岛");
            hs.Add("eStore_Content_VaultOfNight", "红龙维拉(VON红龙Raid)");
            hs.Add("eStore_Content_RestlessIsle", "殒梦岛(泰坦Raid)");
            hs.Add("eStore_Content_SandsOfMenechtarun", "沙漠(女王Raid)");
            hs.Add("eStore_Content_GiantholdRuins", "巨人领地(U17幽灵龙Raid)");
            hs.Add("eStore_Content_Necropolis", "不死城1");
            hs.Add("eStore_Content_Necropolis2", "不死城2");
            hs.Add("eStore_Content_Necropolis3", "不死城3");
            hs.Add("eStore_Content_Necropolis4", "不死城4(升天Raid)");
            hs.Add("eStore_Content_ValeOfTwilight", "十二魔法(裹尸布Raid)");
            hs.Add("eStore_Content_ReaversReach", "水下(SOS)");
            hs.Add("eStore_Content_Shavarath", "沙瓦雷斯(战场)");
            hs.Add("eStore_Content_CrimeWave", "莎伦辛迪加(市场小本)");
            hs.Add("eStore_Content_Inspired", "灵感之路(新海港U1)");
            hs.Add("eStore_Content_Dreaming", "梦中的黑暗(新海港U2)");
            hs.Add("eStore_Content_Sentinels", "风暴湾的哨兵(U4)");
            hs.Add("eStore_Content_Carnival", "菲奥兰狂欢节(U5)");
            hs.Add("eStore_Content_Swamp", "红色沼泽(U6)");       //Swamp沼泽
            hs.Add("eStore_Content_DevilAssault", "恶魔突袭(U7市场Raid)");
            hs.Add("eStore_Content_Droaam2", "风暴湾的战斗(U8炸船)"); //Droaam炸船里的疯子狗头人
            hs.Add("eStore_Content_Taken", "疯狂的预兆(U9)");      //Taken瘸腿畸形怪
            hs.Add("eStore_Content_Xoriat", "疯狂的统治(U10)");
            hs.Add("eStore_Content_Blades1", "刀锋领主挑战(U11)");
            hs.Add("eStore_Content_Blades2", "刀锋领主(U12-刀锋Raid)");
            hs.Add("estore_Content_EveningstarAdventures", "伊尔明斯特副本包(U14-C1)");
            hs.Add("estore_Content_EveningstarChallenges", "伊尔明斯特挑战(U14-C1)");
            hs.Add("estore_Content_EveningstarLandscape", "伊尔明斯特野外(U14-C1)");
            hs.Add("estore_Content_UnderdarkAdventures", "黑暗地域副本包(U14-C2)");
            hs.Add("estore_Content_UnderdarkLandscape", "黑暗地域野外(U14-C2)");
            hs.Add("estore_Content_DemonwebAdventures", "恶魔蛛网副本包(U14-C3-Raid)");
            hs.Add("estore_Content_DemonwebLandscape", "恶魔蛛网野外(U14-C3)");
            hs.Add("eStore_Content_Plant", "德鲁伊的内部(U15活木晶核)");  //植物
            hs.Add("eStore_Content_Castles", "阴影之路(U16)");      //Castles城堡
            hs.Add("eStore_Content_Wheloon", "阴影笼罩中的沃伦(U19)");  //Wheloon沃伦
            hs.Add("eStore_Content_Stormhorns", "黑暗中的阴谋(U20)"); //Stormhorns风暴角


            hs.Add("eStore_Feature_32PtBuild", "32点开卡");
            hs.Add("eStore_Feature_AccountBank", "共享银行");
            hs.Add("eStore_Feature_AccountBank_SlotsUpgrade_1", "共享银行升级1");
            hs.Add("eStore_Feature_AccountBank_SlotsUpgrade_2", "共享银行升级2");
            hs.Add("eStore_Feature_AccountBank_SlotsUpgrade_3", "共享银行升级3");
            hs.Add("eStore_Feature_AccountBank_SlotsUpgrade_4", "共享银行升级4");
            hs.Add("eStore_Feature_AccountBank_SlotsUpgrade_5", "共享银行升级5");
            hs.Add("eStore_Feature_AccountBank_SlotsUpgrade_6", "共享银行升级6");
            hs.Add("eStore_Feature_Bladeforged", "刀锋机关人");
            hs.Add("eStore_Feature_CharSlot", "角色位1");
            hs.Add("eStore_Feature_CharSlot_2", "角色位2");
            hs.Add("eStore_Feature_CharSlot_3", "角色位3");
            hs.Add("eStore_Feature_CharSlot_4", "角色位4");
            hs.Add("eStore_Feature_CharSlot_5", "角色位5");
            hs.Add("eStore_Feature_CharSlot_6", "角色位6");

            hs.Add("eStore_Feature_Druid", "德鲁伊");
            hs.Add("eStore_Feature_EpicDestinies", "传奇天命");
            hs.Add("eStore_Feature_FavoredSoul", "天佑");
            hs.Add("eStore_Feature_HalfElf", "半精灵");
            hs.Add("eStore_Feature_HalfOrc", "半兽人");
            hs.Add("eStore_Feature_HeadStart", "副本困难难度开启");
            hs.Add("eStore_Feature_Monk", "和尚");
            hs.Add("eStore_Feature_Morninglord", "日精灵");
            hs.Add("eStore_Feature_PurpleDragonKnight", "紫龙骑士");
            hs.Add("eStore_Feature_Shadarkai", "影灵");
            hs.Add("eStore_Feature_Warforged", "机关人");
            hs.Add("eStore_Feature_DeepGnome", "深渊侏儒");
            hs.Add("eStore_Feature_Warlock", "邪术师(老王)");

            hs.Add("Community_Offer_YellowCube", "黄果冻");


            string sKey = strKey.Replace("\n", "").Trim();

            if (hs.Contains(sKey))
            {
                return(hs[sKey].ToString() + "\n");
            }
            NoMatch.Add(strKey);

            if (sKey.Contains("eStore_Feature_AccountBank_SharedPlatUpgrade"))
            {
                return(sKey.Replace("eStore_Feature_AccountBank_SharedPlatUpgrade", "共享银行铂币") + "\n");
            }
            if (sKey.Contains("CharacterSlot"))
            {
                return(sKey.Replace("CharacterSlot", "角色槽") + "\n");
            }
            return(strKey);
        }
        void ReleaseDesignerOutlets()
        {
            if (BottomConstraint != null)
            {
                BottomConstraint.Dispose();
                BottomConstraint = null;
            }

            if (ChatListBottomSeparator != null)
            {
                ChatListBottomSeparator.Dispose();
                ChatListBottomSeparator = null;
            }

            if (ChatUserList != null)
            {
                ChatUserList.Dispose();
                ChatUserList = null;
            }

            if (MenuList != null)
            {
                MenuList.Dispose();
                MenuList = null;
            }

            if (MenuListBg != null)
            {
                MenuListBg.Dispose();
                MenuListBg = null;
            }

            if (MenuListBgCorner != null)
            {
                MenuListBgCorner.Dispose();
                MenuListBgCorner = null;
            }

            if (NoMatch != null)
            {
                NoMatch.Dispose();
                NoMatch = null;
            }

            if (NoofMatches != null)
            {
                NoofMatches.Dispose();
                NoofMatches = null;
            }

            if (RippleChatList != null)
            {
                RippleChatList.Dispose();
                RippleChatList = null;
            }

            if (RoundBottom != null)
            {
                RoundBottom.Dispose();
                RoundBottom = null;
            }

            if (Snackbar != null)
            {
                Snackbar.Dispose();
                Snackbar = null;
            }

            if (SnackBottomConstraint != null)
            {
                SnackBottomConstraint.Dispose();
                SnackBottomConstraint = null;
            }

            if (SnackTopConstraint != null)
            {
                SnackTopConstraint.Dispose();
                SnackTopConstraint = null;
            }
        }