OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
FadeRegister.cs
Go to the documentation of this file.
1
using
PixoVR.Fade;
2
using
UnityEngine;
3
4
namespace
PixoVR.Core.Examples
5
{
6
public
class
FadeRegister
: MonoBehaviour
7
{
8
[SerializeField]
9
FadeSerice
fadeController
;
10
private
void
Awake
()
11
{
12
ServiceLocator
.Register(
fadeController
);
13
//EventBetter.Listen(this, (FadeInEvent fade) => { fadeController.FadeIn(fade.callback); });
14
//EventBetter.Listen(this, (FadeOutEvent fade) => { fadeController.FadeOut(fade.callback); });
15
}
16
private
void
OnDestroy
()
17
{
18
ServiceLocator
.Unregister(
fadeController
);
19
}
20
}
21
}
PixoVR.Core.Examples.FadeRegister
Definition
FadeRegister.cs:7
PixoVR.Core.Examples.FadeRegister.fadeController
FadeSerice fadeController
[SerializeField]
Definition
FadeRegister.cs:12
PixoVR.Core.Examples.FadeRegister.OnDestroy
void OnDestroy()
Definition
FadeRegister.cs:19
PixoVR.Core.Examples.FadeRegister.Awake
void Awake()
Definition
FadeRegister.cs:13
PixoVR.Core.ServiceLocator
Unity components communication service.
Definition
ServiceLocator.cs:10
PixoVR.Core.Examples
Definition
FadeRegister.cs:5
com.pixovr.coreunitysdk
Samples
ServiceLocator
Scripts
FadeRegister.cs
Generated
Wed Oct 9 2024 19:24:02
by Doxygen version
1.10.0