2026-03-24 11:39:01 +08:00

20 lines
397 B
C#

using UnityEngine;
public class PC_ShowHideEvent : MonoBehaviour,IHide,IShow
{
public void Hide()
{
gameObject.SetActive(false);
if(TryGetComponent(out PC_HandModel handModel))
{
handModel.SetLeftHandModel(false);
handModel.SetRightHandModel(false);
}
}
public void Show()
{
gameObject.SetActive(true);
}
}