Example #1
0
    private void Start()
    {
        Handling = GetComponent <PlayerHandling>();
        RB       = GetComponent <Rigidbody>();

        JumpForceCharge = JumpForceChargeMin;
    }
Example #2
0
    private void Awake()
    {
        _playerHandling           = GetComponent <PlayerHandling>();
        _playerCheckpointResetter = GetComponent <PlayerCheckpointResetter>();
        _ragdollController        = GetComponent <RagdollController>();
        _playerEffects            = GetComponentInChildren <PlayerEffects>();

        _health = _initialHealth;
    }
Example #3
0
    private void Start()
    {
        RB       = GetComponent <Rigidbody>();
        Handling = GetComponent <PlayerHandling>();
        Thrust   = GetComponent <PlayerThrust>();
        Health   = GetComponent <PlayerHealth>();

        ChargeTimer = 0;
        DashTimer   = 0;
    }
Example #4
0
    void Start()
    {
        RB       = GetComponent <Rigidbody>();
        Movement = GetComponent <IMove>();
        Handling = GetComponent <PlayerHandling>();

        //Initialize an array to contain all hover points
        HoverPoints = new Transform[HoverPointRows * HoverPointColumns];
        GenerateHoverPoints(HoverArea, HoverPointColumns, HoverPointRows);

        CreatePIDs();
    }
Example #5
0
    private void Awake()
    {
        // Set references
        _hoverBoardController = GetComponent <HoverBoardControllerYoshi02>();
        _handling             = GetComponent <PlayerHandling>();
        _playerHealth         = GetComponent <PlayerHealth>();
        if (_flipColliderObject != null)
        {
            _flipCollider = _flipColliderObject.GetComponent <CapsuleCollider>();
        }
        if (_slashColliderObject != null)
        {
            _slashCollider = _slashColliderObject.GetComponent <CapsuleCollider>();
        }

        // TODO: Visuals
        // _boardExtension.SetActive( false );
        _boardTrail.emitting = false;
    }
Example #6
0
 private void Start()
 {
     RB       = GetComponent <Rigidbody>();
     Handling = GetComponent <PlayerHandling>();
 }
Example #7
0
 private void Awake()
 {
     _rb       = GetComponent <Rigidbody>();
     _handling = GetComponent <PlayerHandling>();
     _thrust   = GetComponent <PlayerThrust>();
 }
Example #8
0
 public void TriggerEnter(GameObject caller)
 {
     _hasContact     = true;
     _playerHandling = caller.GetComponentInParent <PlayerHandling>();
     _playerBoost    = caller.GetComponentInParent <PlayerBoost>();
 }