8 public override void OnFixedUpdate()
10 if (this.rb.velocity.y > 0.3f ||
this.rb.velocity.y < -0.3f)
15 this.dir.x = (float)(this.flip ? -1 : 1);
16 this.rb.transform.position = this.rb.transform.position + this.dir * this.force;
17 if (this.rb.transform.position.x >
RigidUpdate.rightX)
22 if (this.rb.transform.position.x <
RigidUpdate.leftX)
38 private Vector3 dir =
new Vector3(1f, 0f, 0f);