Пример #1
0
 public static void SetStateToClose(string motionName)
 {
     if (EMMotionManager.instance.openCloseMotions.TryGetValue(motionName, out openCloseMotion))
     {
         openCloseMotion.SetStateToClose();
     }
 }
Пример #2
0
    IEnumerator ShowAndHide(float seconds)
    {
        motion.SetStateToClose();
        motion.Open();
        yield return(new WaitForSeconds(seconds));

        motion.SetStateToOpen();
        motion.Close();
    }
Пример #3
0
 public void Open(string user)
 {
     if (!currentAsk && !FindObjectOfType <PartyMatchmaker>().inParty())
     {
         AskedUser     = user;
         DispText.text = ChatSystem.playerToText(AskedUser) + " invited you to a party.";
         currentAsk    = true;
         panel.SetStateToClose();
         panel.Open();
     }
 }