Example #1
0
        public void ExecuteOnTarget(HeroKitObject targetObject)
        {
            // get the movement script
            FPSController3D moveObject = targetObject.GetHeroComponent <FPSController3D>("FPSController3D", true);

            moveObject.enabled = false;
        }
Example #2
0
        public void ExecuteOnTarget(HeroKitObject targetObject, int speed, int animationType, string walkAnimation, string idleAnimation)
        {
            // get the movement script
            FPSController3D moveObject = targetObject.GetHeroComponent <FPSController3D>("FPSController3D", true);

            moveObject.settings.speed = speed;

            // 3 = don't use animation
            if (animationType != 3)
            {
                moveObject.settings.moveDefault = walkAnimation;
                moveObject.settings.lookDefault = idleAnimation;
            }

            moveObject.settings.animationType = animationType;
            moveObject.enabled = true;
        }