private void Start() { player = Player.Instance; body = player.GetComponent <Rigidbody2D>(); gravity = player.GetComponent <PlayerGravity>(); state = States.None; attachEffect = player.GetEffect <WallAttachEffect>(); canAttachToWall = true; move = player.GetAbility <MoveComponent>(); playerController = IO.PlayerController.Get(); }
public void Init(Player player, IO.PlayerController playerController) { crosshair = player.GetEffect <CrosshairEffect>(); controller = playerController; }
public CycleWeaponButton(Player player, IO.PlayerController controller) : base(player, controller) { shoot = player.GetAbility <ShootAbility>(); }
public ShootButton(Player player, IO.PlayerController controller) : base(player, controller) { shoot = player.GetAbility <ShootAbility>(); shoot.Init(player, controller); }
private void Awake() { player = GetComponentInParent <Player>(); controller = player.GetComponent <IO.PlayerController>(); }
public void Init(Player player, IO.PlayerController playerController) { state = States.Ready; controller = playerController; }
public PlayerControllerButtonHandler(Player player, IO.PlayerController controller) { this.player = player; this.controller = controller; }
public SpecialButton(Player player, IO.PlayerController controller) : base(player, controller) { blink = player.GetAbility <BlinkAbility>(); blink.Init(player, controller); }
public JumpButton(Player player, IO.PlayerController controller) : base(player, controller) { jumpComponent = player.GetAbility <PlayerJumpComponent>(); wallJump = player.GetAbility <WallJumpAbility>(); airBoost = player.GetAbility <AirBoostAbility>(); }