SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
933 B

using System;
namespace UnityEngine.XR.Management.Tests.Standalone
{
public class StandaloneSubsystem : Subsystem
{
private bool isRunning = false;
public override bool running
{
get
{
return isRunning;
}
}
public event Action startCalled;
public event Action stopCalled;
public event Action destroyCalled;
public override void Start()
{
isRunning = true;
if (startCalled != null)
startCalled.Invoke();
}
public override void Stop()
{
isRunning = false;
if (stopCalled != null)
stopCalled.Invoke();
}
protected override void OnDestroy()
{
isRunning = false;
if (destroyCalled != null)
destroyCalled.Invoke();
}
}
}