Пример #1
0
 public void Accept()
 {
     FindObjectOfType <ChatSystem>().Whisper(AskedUser, "ACCEPT_INVITE");
     FindObjectOfType <PartyMatchmaker>().SetLeader(AskedUser);
     panel.SetStateToOpen();
     panel.Close();
     currentAsk = false;
 }
Пример #2
0
 public static void SetStateToOpen(string motionName)
 {
     if (EMMotionManager.instance.openCloseMotions.TryGetValue(motionName, out openCloseMotion))
     {
         openCloseMotion.SetStateToOpen();
     }
 }
Пример #3
0
    IEnumerator ShowAndHide(float seconds)
    {
        motion.SetStateToClose();
        motion.Open();
        yield return(new WaitForSeconds(seconds));

        motion.SetStateToOpen();
        motion.Close();
    }