private void Awake() { pcInput = GetComponent <PCInput>(); pcState = GetComponent <PCState>(); pcMove = GetComponent <PCMove>(); colliderRadius = (bodyCollider.bounds.size.x / 2f) + 0.2f; }
// ----------------------------------------------------------------------------- // Unity Events private void Awake() { pcState = GetComponent <PCState>(); pcInput = GetComponent <PCInput>(); pcMove = GetComponent <PCMove>(); pcAnim = GetComponent <PCAnim>(); currScene = SceneManager.GetActiveScene().name; defaultCamPos = camFollowPoint.localPosition; }
private void Awake() { anim = GetComponent <Animator>(); pcState = GetComponent <PCState>(); pcInput = GetComponent <PCInput>(); pcMove = GetComponent <PCMove>(); mJump = GetComponent <Move_Jump>(); mRun = GetComponent <Move_Run>(); mWallslide = GetComponent <Move_WallSlide>(); // mDash = GetComponent<Move_Dash>(); mDuck = GetComponent <Move_Duck>(); mWalk = GetComponent <Move_Walk>(); aState = State.BoxIdle; transition = true; }
private void Awake() { pcInput = GetComponent <PCInput>(); pcState = GetComponent <PCState>(); pcMove = GetComponent <PCMove>(); }