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();
        }
Exemplo n.º 2
0
 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>();
 }
Exemplo n.º 4
0
 public ShootButton(Player player, IO.PlayerController controller) : base(player, controller)
 {
     shoot = player.GetAbility <ShootAbility>();
     shoot.Init(player, controller);
 }
Exemplo n.º 5
0
 private void Awake()
 {
     player     = GetComponentInParent <Player>();
     controller = player.GetComponent <IO.PlayerController>();
 }
Exemplo n.º 6
0
 public void Init(Player player, IO.PlayerController playerController)
 {
     state      = States.Ready;
     controller = playerController;
 }
Exemplo n.º 7
0
 public PlayerControllerButtonHandler(Player player, IO.PlayerController controller)
 {
     this.player     = player;
     this.controller = controller;
 }
Exemplo n.º 8
0
 public SpecialButton(Player player, IO.PlayerController controller) : base(player, controller)
 {
     blink = player.GetAbility <BlinkAbility>();
     blink.Init(player, controller);
 }
Exemplo n.º 9
0
 public JumpButton(Player player, IO.PlayerController controller) : base(player, controller)
 {
     jumpComponent = player.GetAbility <PlayerJumpComponent>();
     wallJump      = player.GetAbility <WallJumpAbility>();
     airBoost      = player.GetAbility <AirBoostAbility>();
 }