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