コード例 #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;
 }