コード例 #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;
            }
        }
コード例 #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);
        }
コード例 #3
0
        private void PushFOButton()
        {
            hSprite.OnOutsideClick();
            AnimSpeedController component = obj_chaF_001.GetComponent <AnimSpeedController>();

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