Elin Decompiled Documentation
EA 23.171 Nyaightly
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
Files
File List
File Members
All
$
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
z
Functions
Variables
Enumerations
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Pages
Loading...
Searching...
No Matches
WidgetUnityChan.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
WidgetUnityChan
:
Widget
4
{
5
public
static
WidgetUnityChan
Instance
;
6
7
public
float
angleFix
;
8
9
public
bool
up
;
10
11
public
GameObject
goWorld
;
12
13
public
GameObject
prefabWorld
;
14
15
public
Animator
animator
;
16
17
public
Camera
cam
;
18
19
public
Vector3
scroll
;
20
21
public
override
void
OnActivate
()
22
{
23
Instance
=
this
;
24
goWorld
= Object.Instantiate(
prefabWorld
);
25
animator
=
goWorld
.GetComponentInChildren<Animator>();
26
cam
=
goWorld
.GetComponentInChildren<Camera>();
27
}
28
29
public
void
OnDestroy
()
30
{
31
Object.DestroyImmediate(
goWorld
);
32
}
33
34
public
void
Refresh
(
float
angle)
35
{
36
animator.transform.localEulerAngles =
new
Vector3(0f, angle +
angleFix
, 0f);
37
cam.fieldOfView = (
up
? 6f : 12f);
38
}
39
40
public
override
void
OnSetContextMenu
(
UIContextMenu
m)
41
{
42
m.
AddChild
(
"setting"
).
AddToggle
(
"Up"
,
up
, delegate(
bool
a)
43
{
44
up
= a;
45
});
46
SetBaseContextMenu
(m);
47
}
48
}
UIContextMenu
Definition:
UIContextMenu.cs:9
UIContextMenu.AddToggle
UIContextMenuItem AddToggle(string idLang="", bool isOn=false, UnityAction< bool > action=null)
Definition:
UIContextMenu.cs:316
UIContextMenu.AddChild
UIContextMenu AddChild(string idLang, TextAnchor anchor)
Definition:
UIContextMenu.cs:496
WidgetUnityChan
Definition:
WidgetUnityChan.cs:4
WidgetUnityChan.Refresh
void Refresh(float angle)
Definition:
WidgetUnityChan.cs:34
WidgetUnityChan.scroll
Vector3 scroll
Definition:
WidgetUnityChan.cs:19
WidgetUnityChan.OnActivate
override void OnActivate()
Definition:
WidgetUnityChan.cs:21
WidgetUnityChan.animator
Animator animator
Definition:
WidgetUnityChan.cs:15
WidgetUnityChan.up
bool up
Definition:
WidgetUnityChan.cs:9
WidgetUnityChan.angleFix
float angleFix
Definition:
WidgetUnityChan.cs:7
WidgetUnityChan.prefabWorld
GameObject prefabWorld
Definition:
WidgetUnityChan.cs:13
WidgetUnityChan.goWorld
GameObject goWorld
Definition:
WidgetUnityChan.cs:11
WidgetUnityChan.cam
Camera cam
Definition:
WidgetUnityChan.cs:17
WidgetUnityChan.Instance
static WidgetUnityChan Instance
Definition:
WidgetUnityChan.cs:5
WidgetUnityChan.OnSetContextMenu
override void OnSetContextMenu(UIContextMenu m)
Definition:
WidgetUnityChan.cs:40
WidgetUnityChan.OnDestroy
void OnDestroy()
Definition:
WidgetUnityChan.cs:29
Widget
Definition:
Widget.cs:7
Widget.SetBaseContextMenu
void SetBaseContextMenu(UIContextMenu m)
Definition:
Widget.cs:608
Elin
WidgetUnityChan.cs
Generated by
1.9.6