-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfieldController.sj
More file actions
33 lines (27 loc) · 881 Bytes
/
fieldController.sj
File metadata and controls
33 lines (27 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
fieldController(
selectPerson(id : 'string) {
debug.writeLine("personElement pressed")
ifValid m : modelsById[id] {
c : m.getCenter()
w : m.getWorld()
l : w * c.asVec4()
d : l.asVec3()
debug.writeLine(c.asString() + " => " + l.asString() + " & " + d.asString())
fieldScene.animateLookAt(d, 2000)
e : heap fadeEffect()
e.alpha = 0.0f
e.animateAlpha(1.0f, 2000)
fieldBuyElement.effect = e as #effect
void
} elseEmpty {
debug.writeLine("cannot find parent mode by id: " + id)
}
void
}
onBack() {
fieldScene.animateLookAt(vec3(0.0f, 0.0f, -5.0f), 2000)
menuController.onBackFromField()
void
}
) { this }
fieldController : heap fieldController()