public void ExecuteOnTarget(HeroKitObject targetObject) { // stop moving the source object toward the target object HeroPathfinding3D moveObject = targetObject.GetHeroComponent <HeroPathfinding3D>("HeroPathfinding3D"); if (moveObject != null) { moveObject.StopNavigation(); } }
public void ExecuteOnTarget(HeroKitObject targetObject) { // get the movement script HeroPathfinding3D moveObject = targetObject.GetHeroComponent <HeroPathfinding3D>("HeroPathfinding3D"); if (moveObject != null) { moveObject.StopNavigation(); } }