OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
FadeTest.cs
Go to the documentation of this file.
1
using
PixoVR.Fade;
2
using
System.Collections;
3
using
System.Collections.Generic;
4
using
UnityEngine;
5
6
namespace
PixoVR.Core.Examples
7
{
8
public
class
FadeTest
: MonoBehaviour
9
{
10
[SerializeField]
11
int
state
;
12
private
FadeSerice
fadeSerice
;
13
// Start is called before the first frame update
14
void
Start
()
15
{
16
fadeSerice
=
ServiceLocator
.Resolve<FadeSerice>();
17
}
18
19
// Update is called once per frame
20
void
Update
()
21
{
22
switch
(
state
)
23
{
24
case
1:
25
fadeSerice
.FadeIn(()=> { Debug.Log(
"fadein"
); });
26
state
= 0;
27
break
;
28
case
2:
29
fadeSerice
.FadeOut(()=>{ Debug.Log(
"fadeout"
); });
30
state
= 0;
31
break
;
32
default
:
33
break
;
34
}
35
}
36
}
37
}
PixoVR.Core.Examples.FadeTest
Definition
FadeTest.cs:9
PixoVR.Core.Examples.FadeTest.Start
void Start()
Definition
FadeTest.cs:17
PixoVR.Core.Examples.FadeTest.fadeSerice
FadeSerice fadeSerice
Definition
FadeTest.cs:15
PixoVR.Core.Examples.FadeTest.Update
void Update()
Definition
FadeTest.cs:23
PixoVR.Core.Examples.FadeTest.state
int state
[SerializeField]
Definition
FadeTest.cs:14
PixoVR.Core.ServiceLocator
Unity components communication service.
Definition
ServiceLocator.cs:10
PixoVR.Core.Examples
Definition
FadeRegister.cs:5
com.pixovr.coreunitysdk
Samples
ServiceLocator
Scripts
FadeTest.cs
Generated
Wed Oct 9 2024 19:24:02
by Doxygen version
1.10.0