Пример #1
0
 private void Awake()
 {
     pcInput        = GetComponent <PCInput>();
     pcState        = GetComponent <PCState>();
     pcMove         = GetComponent <PCMove>();
     colliderRadius = (bodyCollider.bounds.size.x / 2f) + 0.2f;
 }
Пример #2
0
// -----------------------------------------------------------------------------
// Unity Events

    private void Awake()
    {
        pcState       = GetComponent <PCState>();
        pcInput       = GetComponent <PCInput>();
        pcMove        = GetComponent <PCMove>();
        pcAnim        = GetComponent <PCAnim>();
        currScene     = SceneManager.GetActiveScene().name;
        defaultCamPos = camFollowPoint.localPosition;
    }
Пример #3
0
    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;
    }
Пример #4
0
 private void Awake()
 {
     pcInput = GetComponent <PCInput>();
     pcState = GetComponent <PCState>();
     pcMove  = GetComponent <PCMove>();
 }