private void Start() { background = transform.GetChild(0).GetComponent <UnityEngine.UI.Image>(); popup = background.transform.GetChild(0).GetComponent <RectTransform>(); AnimDefault.AnimIn(background, popup); }
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); }
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); }
public void Show() { ResetItens(); popup.DOMoveY(0, 0.5f); AnimDefault.AnimIn(background); }