Update: CC - SnailRunner - Before Render (94xi7aitax.js) 240 bytes modified
parent
c6e47bb064
commit
964488447a
|
@ -9,6 +9,8 @@ if (!this.initialized) {
|
||||||
*/
|
*/
|
||||||
this.sections = this.entityLoaded.sections;
|
this.sections = this.entityLoaded.sections;
|
||||||
this.cloud = this.entityLoaded.cloud;
|
this.cloud = this.entityLoaded.cloud;
|
||||||
|
this.camera = this.entityLoaded.camera;
|
||||||
|
this.snail = this.entityLoaded.snail;
|
||||||
|
|
||||||
this.time = 0;
|
this.time = 0;
|
||||||
|
|
||||||
|
@ -46,6 +48,13 @@ this.sections.map(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (this.camera.position.z < this.snail.position.z) {
|
||||||
|
this.camera.position.z += data.delta * 0.1;
|
||||||
|
} else {
|
||||||
|
this.camera.position.z -= data.delta * 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
this.time += data.delta;
|
this.time += data.delta;
|
||||||
|
|
||||||
if (this.time > 5) {
|
if (this.time > 5) {
|
||||||
|
|
Loading…
Reference in New Issue