This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class EnemyUnit | |
| { | |
| public bool Enabled; // Is the object active within the environment? | |
| public bool IsAlive; // Has the object been killed yet? | |
| public bool CanBeHit; // Can the enemy be hit or is it currently invulnerable or dead? | |
| public void OnHit() | |
| { | |
| if(Enabled) | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class EnemyUnit | |
| { | |
| public bool Enabled; // Is the object active within the environment? | |
| public bool IsAlive; // Has the object been killed yet? | |
| public bool CanBeHit; // Can the enemy be hit or is it currently invulnerable or dead? | |
| public void OnHit() | |
| { | |
| if(Enabled) | |
| { | 
OlderNewer