private void OnPuffer(Puffer p)
 {
     if (p.HitSpring(GetFakeSpring()))
     {
         BounceAnimate();
     }
 }
示例#2
0
 private void OnPuffer(Puffer p)
 {
     if (p.HitSpring(this))
     {
         Vector2 pufferSpeed = (Vector2)Puffer_hitSpeed.GetValue(p);
         Puffer_hitSpeed.SetValue(p, pufferSpeed * speedMult);
         BounceAnimate();
         TryBreak();
     }
 }