I have the pro version and am using the Local Avoidance component on my units in a RTS project. When a unit is killed, I deactivate the gameObject by running:
this.gameObject.SetActiveRecursively( false );
The problem I’m having is that a dead (deactivated) unit’s Local Avoidance component still influences the movement of live units. The live units continue to try to walk around the dead unit which visibly is just empty space.
So how do a deactivate Local Avoidance on a particular unit?
I realize this component is in beta, so maybe this is a bug?