Beispiel #1
0
    public PlayerOwnedObject GetNextUnitInTurnQueue(TurningUnitInfo turningUnit, out int turnIndex)
    {
        var aliveUnits = TurningPlayer.Entity.OwnedObjects
                         .Where(obj => HealthComponent.IsAliveOrHasNoHealthComponent(obj.gameObject));

        return(turningUnit.GetNextObjectInQueue(aliveUnits, out turnIndex));
    }