Ejemplo n.º 1
0
 public void Interfare(RicochetBullet bullet)
 {
     Debug.Log("Wall[Cloth]: collision from bullet ricochets");
     // No additional action
 }
Ejemplo n.º 2
0
 public void Interfare(RicochetBullet bullet)
 {
     Debug.Log("Wall[Simple]: bullet ricochets");
     // Change angle
     bullet.ApplyForce(-bullet.Body.velocity * _impactAmount);
 }