20 lines
397 B
C#
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);
|
|
}
|
|
}
|