private void OnHoldable(Holdable h) { bool flag = h.HitSpring(this); if (flag) { BounceAnimate(); TryBreak(); if (h.Entity is Glider) { Glider glider = h.Entity as Glider; if (Orientation == Orientations.Floor) { glider.Speed.Y *= speedMult.Y; } else { glider.Speed *= speedMult; } } else if (h.Entity is TheoCrystal) { TheoCrystal theo = h.Entity as TheoCrystal;//.Speed = theoSpeed; if (Orientation == Orientations.Floor) { theo.Speed.Y *= speedMult.Y; } else { theo.Speed *= speedMult; } } } }
private void OnHoldable(Holdable h) { if (h.HitSpring(GetFakeSpring())) { BounceAnimate(); } }