10 if (!
EMono.core.IsGameStarted)
16 this.origin = _origin;
18 this.from = _origin.pos.Copy();
19 this.snapTimer = -0.01f;
26 data = this.animeData,
27 renderer = this.card.renderer
37 this.snapTimer = -0.01f;
38 this.from = from.Copy();
39 base.Play(from, fixY, to,
null);
44 data = this.animeData,
45 renderer = this.card.renderer
52 public override void OnUpdate()
54 RenderParam renderParam = this.card.GetRenderParam();
55 renderParam.color = (float)
EMono.scene.screenElin.tileMap.GetApproximateBlocklight(
this.from.cell);
56 this.timer += Core.delta;
57 this.snapTimer -= Core.delta;
59 if (transAnime !=
null)
63 if (this.snapTimer < 0f || this.v == Vector3.zero)
67 if (this.origin.renderer !=
null)
69 Vector3 position = this.origin.renderer.position;
70 Vector3 vector = this.destV * this.timer / this.duration * this.speed;
71 this.v.x = position.x + this.posFix.x + vector.x;
72 this.v.y = position.y + this.posFix.y + vector.y;
73 this.v.z = position.z + this.posFix.z + vector.z;
78 this.v.x = base.transform.position.x;
79 this.v.y = base.transform.position.y;
80 this.v.z = base.transform.position.z;
82 if (this.anime !=
null)
84 this.v.x = this.v.x + this.anime.v.x;
85 this.v.y = this.v.y + this.anime.v.y;
86 this.v.z = this.v.z + this.anime.v.z;
88 this.snapTimer += this.snapInterval;
90 renderParam.x = this.v.x;
91 renderParam.y = this.v.y;
92 renderParam.z = this.v.x;
93 this.card.renderer.skip =
true;
94 if (this.card.renderer.usePass)
96 this.card.renderer.data.Draw(renderParam);
99 if (this.card.renderer.actor)
101 this.card.renderer.actor.OnRender(renderParam);
115 public float snapInterval;
127 private float snapTimer;