public static void EnterCore(int picId, int sliceId) { // save status lastPicId = picId; lastSliceId = sliceId; // hide bg and show core page UIEngine.HideFlaoting <BackgroundFloating>(); UIEngineHelper.WateAdmissionComplete(() => { UIEngine.Forward <CorePage>(); }); // load picture which player select var picFile = StaticDataLite.GetCell <string>("pic", picId.ToString(), "file"); var contentSprite = PicLibrary.LoadContentSprite(picFile); // load slice info var piceSize = StaticDataLite.GetCell <int>("pice_slice", sliceId.ToString(), "cell_size"); // test code // piceSize = 400; // start core game Puzzle.Instance.StartPuzzle(contentSprite, piceSize); // when compelte Puzzle.Instance.Complete += OnCoreGameCompelte; //LocalNotification.SendNotification(1, 5000, "Title", "Long message text", new Color32(0xff, 0x44, 0x44, 255)); }
public IEnumerator Do() { clickMask.gameObject.SetActive(true); if (!PlayerStatus.IsTodaySigned()) { yield return(StepAsync("SignPage", "content/button_get", "SIGN", 184, MsgList.Get("guide1"))); } yield return(StepAsync("MainPage", "scrollRect/content/image_grid/animal", "SELECT_PIC_TYPE", 740, MsgList.Get("guide2"))); yield return(StepAsync("PicturePage", "scrollRect/content/1", "SELECT_PIC", 700, MsgList.Get("guide3"))); yield return(StepAsync("LevelSettingsPage", "content/button_newGame", "NEW_GAME", 150, MsgList.Get("guide4"))); yield return(StepClickAsync("CorePage", 1050, MsgList.Get("guide5"))); guideMode = false; PlayerStatus.needGide = false; PlayerStatus.Save(); clickMask.gameObject.SetActive(false); yield return(CorePageHandGuide()); UIEngine.HideFlaoting("GuideFloating"); }
public void OnAnimationPlayComplete() { UIEngine.HideFlaoting <ImitateDialogFloating>(); }
public void OnFollButton() { UIEngine.HideFlaoting <StarFloating>(); }