1
0
Fork 0
LaboratoryProtection/Assets/UnityTest/Common/Scripts/Camera/PlayerHider.cs

14 lines
289 B
C#

using PMaker.DependencyInjection;
public class PlayerHider : BaseBehaviour
{
private void OnEnable()
{
IoC.GetSingleton<FirstPersonLogic>().SetActive(false);
}
private void OnDisable()
{
IoC.GetSingleton<FirstPersonLogic>().SetActive(true);
}
}