Esempio n. 1
0
 public void Interfare(LaserBullet bullet)
 {
     Debug.Log("Wall[Cloth]: penetration from laser bullet");
     // Decrease speed
     bullet.ApplyForce(-bullet.Transform.forward * _slowdownSpeed);
 }
Esempio n. 2
0
 public void Interfare(LaserBullet bullet)
 {
     Debug.Log("Wall[Simple]: collistion from laser bullet");
     // Destroy bullet
     Destroy(bullet.gameObject);
 }