Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
608 B
1
Indexable
Never
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;

public class MenuManager : MonoBehaviour {
    public GameObject menuPanel, perfilPanel, logoutPanel;

    public void GoToPerfil(){
        menuPanel.SetActive(false);
        perfilPanel.SetActive(true);
    }

    public void OpenLogout() {
        logoutPanel.SetActive(true);
    }

    public void CancelLogout() {
        logoutPanel.SetActive(false);
    }

    public void Logout() {
        SceneManager.LoadScene("Register");
    }
}