コード例 #1
0
        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();
            }
        }
コード例 #2
0
        public void ExecuteOnTarget(HeroKitObject targetObject)
        {
            // get the movement script
            HeroPathfinding3D moveObject = targetObject.GetHeroComponent <HeroPathfinding3D>("HeroPathfinding3D");

            if (moveObject != null)
            {
                moveObject.StopNavigation();
            }
        }