예제 #1
0
 void ShipDamaged(ShipDamagedEvent e)
 {
     if (e.Ship.tag == "Player" && e.Ship.GetComponent <IDamageable>().CurrentHealth < 0f)
     {
         Destroy(e.Ship.GetComponent <IChassis>().SchematicUIClone);
     }
 }
예제 #2
0
 void EngagedByEnemy(ShipDamagedEvent e)
 {
     if (target == null)
     {
         return;
     }
     targetLastSeen = target.transform.position;
 }