Exemplo n.º 1
0
    private void Start()
    {
        background = transform.GetChild(0).GetComponent <UnityEngine.UI.Image>();
        popup      = background.transform.GetChild(0).GetComponent <RectTransform>();

        AnimDefault.AnimIn(background, popup);
    }
Exemplo n.º 2
0
    void Start()
    {
        scrollComidas = popupAlimentos.transform.GetComponentInChildren <ScrollRect>();

        background = transform.GetChild(0).GetComponent <UnityEngine.UI.Image>();
        popup      = background.transform.GetChild(0).GetComponent <RectTransform>();

        AnimDefault.AnimIn(background, popup);

        popupPrincipal.SetActive(true);
        popupAlimentos.SetActive(false);
    }
Exemplo n.º 3
0
    public void Config(int points, int recorde, int coins, string scene)
    {
        AnimDefault.AnimIn(m_Background, m_Popup);

        m_TextPoints.text  = "Pontos: " + points.ToString();
        m_TextRecorde.text = "Recorde: " + recorde.ToString();
        m_TextCoins.text   = coins.ToString();

        m_CurrentScene = scene;

        SaveGameController.Instance.dataGame.dataGame.coins += coins;
        SaveGameController.Instance.SaveGame(false);
    }
Exemplo n.º 4
0
 public void Show()
 {
     ResetItens();
     popup.DOMoveY(0, 0.5f);
     AnimDefault.AnimIn(background);
 }