コード例 #1
0
    void SlimeParty2()
    {
        if (SP2Started == false && gm.isInterRound == false)
        {
            UserChat.CreateChat("아니 이게 무슨..!", 2);
            UserChat.CreateChat("메이플 하고싶다", 3);
            UserChat.CreateChat(UserChat.BadChat("내 다람쥐 어디갔어!!"), 2);
            SP2Started = true;
        }
        if (gm.timeLeft <= 1)
        {
            // 다람쥐와 슬라임을 스왑함
            GameObject temp = GameObject.Find("AddBasicDaram").GetComponent <AddBasicDaram>().daram;
            GameObject.Find("AddBasicDaram").GetComponent <AddBasicDaram>().daram = SlimeParty_Slime;
            SlimeParty_Slime = temp;
            SlimeParty_Slime.GetComponent <Daram>().Type = "Slime";

            gm.EventCheck -= SlimeParty2;
            Instantiate(SlimeParty_Box2);

            Unlockables.SetBool("UnlockSlime1", true);
            Unlockables.SetBool("UnlockSlime1_Amount10", true);
            Unlockables.SetBool("UnlockMush2", true);
            Unlockables.SetBool("UnlockMush2_Amount10", true);
        }
    }
コード例 #2
0
 void FreeServer()
 {
     if (gm.userCount[User.level2] > 10000 && Random.value < 1f / 6001f)
     {
         gm.fame -= 5000;
         gm.userCount[User.level2] -= 4000;
         LogText.WriteLog("프리서버가 생겼다는 소문이 퍼지고 있다.");
         UserChat.CreateChat("여러분 현질 필요없는 게임이 생겼대요!!", 3);
         UserChat.CreateChat(UserChat.BadChat("슬슬 이 게임도 뜰 때가 됬나.."), 4);
         Instantiate(FreeServer_Box);
         gm.EventCheck -= FreeServer;
     }
 }