Beispiel #1
0
    public static void DrawRange(Entity entity)
    {
        var color = (entity.Interaction.Target && entity.Interaction.TargetInRange())
                ? Color.red
                : Color.yellow;

        DrawingTools.Circle(entity.Position, entity.Interaction.Range, color);
    }
Beispiel #2
0
    public static void DrawLineOfSight(Entity entity)
    {
        var color = entity.Awareness.aggro.Any() ? Color.yellow : Color.green;

        DrawingTools.Circle(entity.Position, entity.Awareness.ligneOfSight, color);
    }