Exemplo n.º 1
0
    private void SelectNewActiveActor(PlayerActor actor)
    {
        if (ActiveActor != null)
        {
            ActiveActor.EnergyConsumed -= ReduceEnergy;
            ActiveActor.Deselect();
        }

        ActiveActor = actor;
        ActiveActor.EnergyConsumed += ReduceEnergy;
    }