30 lines
874 B
C#
30 lines
874 B
C#
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
public class SupportAnimeCall : MonoBehaviour
|
|||
|
|
{
|
|||
|
|
public Transform trBackground;
|
|||
|
|
public void CameraLogOut()
|
|||
|
|
{
|
|||
|
|
Animator camAnime = GameObject.Find("MainMenu Camera").GetComponent<Animator>();
|
|||
|
|
|
|||
|
|
camAnime.SetBool("logOut", true);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void CreateFakeBackground()
|
|||
|
|
{
|
|||
|
|
GameObject background = Instantiate(Resources.Load<GameObject>("FundoFalso"), trBackground);
|
|||
|
|
background.transform.SetSiblingIndex(1);
|
|||
|
|
background.name = "FundoFalso";
|
|||
|
|
GameObject.Find("Canvas - Login").GetComponent<Animator>().SetTrigger("login");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void EndAnimeLoad()
|
|||
|
|
{
|
|||
|
|
Transform trNew = GameObject.Find("Canvas - Background").transform;
|
|||
|
|
|
|||
|
|
trBackground.SetParent(trNew);
|
|||
|
|
|
|||
|
|
Animator animeBackground = trNew.GetComponent<Animator>();
|
|||
|
|
animeBackground.Rebind();
|
|||
|
|
}
|
|||
|
|
}
|