30 lines
602 BLFS
C#
30 lines
602 BLFS
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine.EventSystems;
|
|
using UnityEngine;
|
|
|
|
public class SingeDebout : MonoBehaviour
|
|
{
|
|
|
|
[SerializeField] private GameObject singeLunettes;
|
|
|
|
void Start()
|
|
{
|
|
singeLunettes.SetActive(false);
|
|
}
|
|
|
|
void OnMouseEnter()
|
|
{
|
|
if (!GameManager.singleton.CanPlay) return;
|
|
Cursor.visible = false;
|
|
singeLunettes.SetActive(true);
|
|
}
|
|
|
|
void OnMouseExit()
|
|
{
|
|
if (!GameManager.singleton.CanPlay) return;
|
|
Cursor.visible = true;
|
|
singeLunettes.SetActive(false);
|
|
}
|
|
}
|