10 this.maxTime = UnityEngine.Random.Range(0.5f, 1.5f);
14 public override void OnFixedUpdate()
16 Vector3 position = base.transform.position;
17 if (base.transform.position.y < 3f)
19 this.power -= Time.fixedDeltaTime * 0.03f;
29 this.time += this.flip * 0.01f;
30 if (this.time > this.maxTime)
32 this.maxTime = UnityEngine.Random.Range(0.5f, 1.5f);
33 this.time = this.maxTime;
36 else if (this.time < 0f)
38 this.maxTime = UnityEngine.Random.Range(0.5f, 1.5f);
42 this.f = this.time - this.maxTime * 0.5f;
43 this.v.x = this.f * this.slidePower * this.power;
44 this.v.y = (10f - Mathf.Clamp(((this.f > 0f) ? this.f : (-this.f)) * 10f, 0f, 10f)) * this.floatPower * this.power;
45 this.rb.AddForce(this.v);
49 public float floatPower = 0.6f;
52 public float slidePower = 15f;
58 private float flip = 1f;
64 private float maxTime;
70 private float power = 1f;