Exemplo n.º 1
0
 /// <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>();
 }
Exemplo n.º 2
0
			/// <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>();
			}