Beispiel #1
0
    public override void BeforeSwitch(FageStateMachine stateMachine, string afterId)
    {
        base.BeforeSwitch(stateMachine, afterId);
        GalleryScreen gs = stateMachine as GalleryScreen;

        gs.HideTexts();
        gs.HideStars();
        gs.HideButtons();
    }
Beispiel #2
0
    public override void AfterSwitch(FageStateMachine stateMachine, string beforeId)
    {
        base.AfterSwitch(stateMachine, beforeId);
        Debug.Log("GalleryLocked");
        GalleryScreen gs = stateMachine as GalleryScreen;

        gs.ShowTexts();
        gs.HideStars();
        gs.ShowButtons();
    }
Beispiel #3
0
    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);
    }