Exemplo n.º 1
0
        public void ExecuteOnTarget(HeroKitObject targetObject)
        {
            // get the movement script
            RpgController3D moveObject = targetObject.GetHeroComponent <RpgController3D>("RpgController3D", true);

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

            moveObject.settings.animationType = animationType;
            moveObject.settings.speed         = speed;

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

            moveObject.enabled = true;
        }