Example #1
0
    public static void DrawTarget(Entity entity)
    {
        var origin      = entity.Position;
        var destination = entity.Interaction.Target.Position;

        origin.y      += 1f;
        destination.y += 1f;
        DrawingTools.Line(origin, destination, Selection.Instance.TargetColor);
    }
Example #2
0
    public static void DrawAggroList(Entity entity)
    {
        var aggro   = entity.Awareness.aggro;
        var closest = entity.Awareness.closest;

        if (aggro.Any())
        {
            foreach (var target in aggro)
            {
                var other = target.GetComponent <Entity>();
                var color = closest != null && other == closest ? Color.green : Color.yellow;
                var a     = entity.Position;
                var b     = other.Position;
                a.y = a.y + 1f;
                DrawingTools.Line(a, b, color);
                // DrawingTools.Arrow(a, direction.normalized * (distance / 3), color);
            }
        }
    }