ZoeRobotIngles/Assets/Scripts/Face/FaceController.cs

17 lines
398 B
C#
Raw Permalink Normal View History

2026-01-26 22:56:16 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class FaceController : MonoBehaviour
{
void Update()
{
if (Input.GetMouseButtonDown(0))
{
OpenAp.faceOpened = false;
SceneManager.UnloadSceneAsync("Rosto", UnloadSceneOptions.UnloadAllEmbeddedSceneObjects);
}
}
}