/// <summary> /// Creates the Bubble Jump Power Command /// </summary> /// <param name="PowerUser">Object which uses the power</param> public BubbleJumpPowerCommand(GameObject PowerUser) { CC2D = PowerUser.GetComponent <CharacterController2D>(); PIH = PowerUser.GetComponent <PlayerInputHandler>(); A = PowerUser.GetComponent <Animator>(); BB = PowerUser.GetComponent <ButtBubbles>(); }
/// <summary> /// Creates the Bubble Jump Power Command /// </summary> /// <param name="PowerUser">Object which uses the power</param> public BubbleJumpPowerCommand (GameObject PowerUser) { CC2D = PowerUser.GetComponent<CharacterController2D>(); PIH = PowerUser.GetComponent<PlayerInputHandler>(); A = PowerUser.GetComponent<Animator>(); BB = PowerUser.GetComponent<ButtBubbles>(); }