private void SelectNewActiveActor(PlayerActor actor) { if (ActiveActor != null) { ActiveActor.EnergyConsumed -= ReduceEnergy; ActiveActor.Deselect(); } ActiveActor = actor; ActiveActor.EnergyConsumed += ReduceEnergy; }
private void SelectNewActiveActor(PlayerActor actor) { if (ActiveActor != null) { ActiveActor.EnergyConsumed -= ReduceEnergy; ActiveActor.Deselect(); } ActiveActor = actor; ActiveActor.EnergyConsumed += ReduceEnergy; }