private bool onCellPhoneClosed(CellPhoneEvents.CellPhoneClosed evt) { Object.Destroy(base.gameObject); Service.Get <EventDispatcher>().DispatchEvent(new AwayFromKeyboardEvent(AwayFromKeyboardStateType.Here)); if (PlatformUtils.GetPlatformType() == PlatformType.Mobile) { ClubPenguin.Core.SceneRefs.Get <CameraRenderingControl>().EnableRendering(); } return(false); }
private bool onCellPhoneClosed(CellPhoneEvents.CellPhoneClosed evt) { if (isCellPhoneOpenOrOpening) { if (cellPhoneAnim != null) { isCellPhoneOpenOrOpening = true; cellPhoneAnim.SetActive(value: true); cellPhoneAnim.GetComponent <Animator>().SetTrigger("Outro"); cellPhoneAnim.GetComponent <CellPhoneIntroAnimation>().EOutroAnimCompleted += onOutroAnimComplete; } else { isCellPhoneOpenOrOpening = true; cellPhoneAnim = UnityEngine.Object.Instantiate(cellPhoneAnimPrefab); Service.Get <EventDispatcher>().DispatchEvent(new PopupEvents.ShowTopPopup(cellPhoneAnim, destroyPopupOnBackPressed: false, scaleToFit: true, "")); cellPhoneAnim.GetComponent <CellPhoneIntroAnimation>().EOutroAnimCompleted += onOutroAnimComplete; cellPhoneAnim.GetComponent <Animator>().SetTrigger("Outro"); } } return(false); }
private bool onCellPhoneClosed(CellPhoneEvents.CellPhoneClosed evt) { base.gameObject.SetActive(value: true); return(false); }