_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Battle_Royale/MaskContro.cs
2024-11-13 02:03:11 +08:00

28 lines
510 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MaskContro : MonoBehaviour
{
public GameObject Mask;
public static MaskContro instance;
// Start is called before the first frame update
void Start()
{
instance = this;
SetMask(false);
}
public void SetMask(bool flag)
{
if (flag)
{
Mask.SetActive(true);
}
else
{
Mask.SetActive(false);
}
}
}