Added score counter
This commit is contained in:
@@ -13,6 +13,9 @@ public class EnemyController : OrbitalPositionBehaviour
|
||||
|
||||
public override void OnReachCentre()
|
||||
{
|
||||
if (GlobalOrbitalPositionManager.IsSimulationRunning)
|
||||
PlayerController.PlayerScore++;
|
||||
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user