/// <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; } }
private void AddAnimSpeedController(GameObject character) { if (character.GetComponent <AnimSpeedController>() != null) { return; } AnimSpeedController animSpeedController = character.AddComponent <AnimSpeedController>(); animSpeedController.SetController(parentController, ParentSideController(oppositeSide: true), this); }
private void PushFOButton() { hSprite.OnOutsideClick(); AnimSpeedController component = obj_chaF_001.GetComponent <AnimSpeedController>(); if (component != null) { component.fcount = 0f; component.moveFlag = false; } }