seefood_diet / Assets / Scripts / SDUIRecipePage.cs
SDUIRecipePage.cs
Raw
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SDUIRecipePage : MonoBehaviour {

    [SerializeField] Animator m_ThisAnimator;
    public Animator ThisAnimator { get { return m_ThisAnimator; } }

    [SerializeField] SDUIGamePage m_UIGamePage;
    public SDUIGamePage UIGamePage { get { return m_UIGamePage; } }

    public void Show () {

        ThisAnimator?.Play ("page-show");
    }

    public void Dismiss () {

        ThisAnimator?.Play ("page-hide");
    }

    public void ShowGamePage () {

        UIGamePage.Show ();
    }
}