public static void SetStateToClose(string motionName) { if (EMMotionManager.instance.openCloseMotions.TryGetValue(motionName, out openCloseMotion)) { openCloseMotion.SetStateToClose(); } }
IEnumerator ShowAndHide(float seconds) { motion.SetStateToClose(); motion.Open(); yield return(new WaitForSeconds(seconds)); motion.SetStateToOpen(); motion.Close(); }
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(); } }