forked from zxl/LaboratoryProtection
14 lines
289 B
C#
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);
|
|||
|
}
|
|||
|
}
|