GridSystemVisual bug after killing an enemy

Hi,
After killing an enemy, his square continues to appear as a valid target for a second shot until you change action or character. Did I miss something?


Thanks.

@CodeMonkey had a quick answer to this on this post

You can fix it by adding an event listener in the GridSystemVisual.cs script

private void Start()
{
    /*
        other code in here
    */
    Unit.OnAnyUnitDied += Unit_OnAnyUnitDied;
}

private void Unit_OnAnyUnitDied(object sender, EventArgs e)
{
    UpdateGridVisual();
}
4 Likes

Thank you @bixarrio

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms