void Start() { bottomDir = -transform.up; rb = GetComponent <Rigidbody>(); slidingMechanic = GetComponent <EntitySlidingMechanic>(); fallingMechanic = GetComponent <EntityFallingMechanic>(); outlineRend.enabled = false; }
private void Start() { playerLayerMask = LayerMask.GetMask("PlayerBlock"); bottomDir = -transform.up; rb = GetComponent <Rigidbody>(); col = GetComponent <Collider>(); slideMechanic = GetComponent <EntitySlidingMechanic>(); fallingMechanic = GetComponent <EntityFallingMechanic>(); characterAnimation = characterModel.GetComponent <Animator>(); forwardVec = new Vector2(0, 1); backwardVec = new Vector2(0, -1); leftVec = new Vector2(-1, 0); rightVec = new Vector2(1, 0); relForwardVec = forwardVec; relBackwardVec = backwardVec; relLeftVec = leftVec; relRightVec = rightVec; }
private void Start() { bottomBlockDir = -transform.up; rb = GetComponent <Rigidbody>(); fallingMechanic = GetComponent <EntityFallingMechanic>(); }