I'm making an RTS. UnitSprites need to check and modify each others variables to attack and track each other. My problem is that with the picking system, once I have picked one UnitSprite it excludes all other UnitSprites from the event, so I am unable to access or modify them.
For example, I want UnitSprites to track each other by setting UnitSprite.TargetX to the current X position of the UnitSprite designated by UnitSprite.TargetUnitSpriteUID.
But, when I loop through all UnitSprites, I can't pick TargetUnitSpriteUID because picking is inherited, and TargetUnitSpriteUID has already been excluded.
What would be the least cumbersome way to set UnitSprite.TargetX to UnitSprite.TargetUnitSpriteUID.X?