OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
ServiceRegister.cs
Go to the documentation of this file.
1
using
PixoVR.Core
;
2
using
System.Collections;
3
using
System.Collections.Generic;
4
using
UnityEngine;
5
6
namespace
PixoVR.Core
7
{
8
public
class
ServiceRegister
: MonoBehaviour
9
{
10
[SerializeField]
11
private
MonoBehaviour
service
;
12
13
private
void
Awake
()
14
{
15
Debug.Log(gameObject.name);
16
17
ServiceLocator
.Register(
service
);
18
}
19
20
private
void
OnDestroy
()
21
{
22
ServiceLocator
.Unregister(
service
);
23
}
24
}
25
}
PixoVR.Core.ServiceLocator
Unity components communication service.
Definition
ServiceLocator.cs:10
PixoVR.Core.ServiceRegister
Definition
ServiceRegister.cs:9
PixoVR.Core.ServiceRegister.Awake
void Awake()
Definition
ServiceRegister.cs:16
PixoVR.Core.ServiceRegister.OnDestroy
void OnDestroy()
Definition
ServiceRegister.cs:23
PixoVR.Core.ServiceRegister.service
MonoBehaviour service
[SerializeField]
Definition
ServiceRegister.cs:14
PixoVR.Core
Definition
EventBetter.cs:14
com.pixovr.coreunitysdk
Runtime
Sdk
Scripts
ServiceLocator
ServiceRegister.cs
Generated
Wed Oct 9 2024 19:24:02
by Doxygen version
1.10.0