Beispiel #1
0
        /// <summary>
        /// Toggle between strong/weak motion
        /// </summary>
        private void PushMotionChangeButton()
        {
            hFlag.click = HFlag.ClickKind.motionchange;
            AnimSpeedController component = obj_chaF_001.GetComponent <AnimSpeedController>();

            if (component != null)
            {
                component.weakMotion = !component.weakMotion;
            }
        }
Beispiel #2
0
        private void AddAnimSpeedController(GameObject character)
        {
            if (character.GetComponent <AnimSpeedController>() != null)
            {
                return;
            }

            AnimSpeedController animSpeedController = character.AddComponent <AnimSpeedController>();

            animSpeedController.SetController(parentController, ParentSideController(oppositeSide: true), this);
        }
Beispiel #3
0
        private void PushFOButton()
        {
            hSprite.OnOutsideClick();
            AnimSpeedController component = obj_chaF_001.GetComponent <AnimSpeedController>();

            if (component != null)
            {
                component.fcount   = 0f;
                component.moveFlag = false;
            }
        }