void Button_Click() { Genie.I.LogEvent(OE_INTERACT.Create(OE_INTERACT.Type.TOUCH, "mainMenu.suitcase")); SuitcaseButton.GetComponent <Animator>().SetBool("isOpen", true); Suitcase.gameObject.SetActive(true); Suitcase.GetComponent <Animator>().SetBool("showCollectionFromBottom", true); Suitcase.Show(true); Suitcase.onExited = Button_Close; }
public void OpenSuitcase() { int numStamps = Session.Exists ? Session.instance.numStamps : SaveData.instance.Stamps; bool bReveal = m_NextEggInsert >= MAX_EGGS; bReveal &= numStamps <= Suitcase.stamps.Length; m_Animator.SetBool("suitcaseOpen", true); Suitcase.Show(true, bReveal); Suitcase.onExited = Suitcase_onExited; SetSuitcaseButton(false); if (OnSuitcaseOpen != null) { OnSuitcaseOpen(); } }