public override void BeforeSwitch(FageStateMachine stateMachine, string afterId) { base.BeforeSwitch(stateMachine, afterId); GalleryScreen gs = stateMachine as GalleryScreen; gs.HideTexts(); gs.HideStars(); gs.HideButtons(); }
public override void AfterSwitch(FageStateMachine stateMachine, string beforeId) { base.AfterSwitch(stateMachine, beforeId); Debug.Log("GalleryUnlocked"); GalleryScreen gs = stateMachine as GalleryScreen; gs.ShowTexts(); gs.ShowStars(); gs.HideButtons(); }
public override void AfterSwitch(FageStateMachine stateMachine, string beforeId) { base.AfterSwitch(stateMachine, beforeId); Debug.Log("GalleryScrolling"); GalleryScreen gs = stateMachine as GalleryScreen; gs.HideTexts(); gs.HideStars(); gs.HideButtons(); LeanTween.move(gs.content.transform as RectTransform, new Vector3(0f, -(gs.availables - 1) * gs.gap, 0f), 2f).setDelay(1.3f).setEase(LeanTweenType.easeInOutCubic).setOnComplete(OnTweenComplete).setOnCompleteParam(gs); }