private void Start() { DOTween.Init(); _myRigidbody = GetComponent<Rigidbody>(); _myCharacterAnimator = GetComponent<Character_Animator>(); _CanMove = true; _IsFaceRight = true; _IsDead = false; _IsLevelFinished = false; _runSpeed = 4; _jumpSpeed = 25; _wallSlideSpeed = 1f; _wallJumpForceX = 2000; _wallJumpForceY = 1300; _groundCheckRadius = 0.2f; _wallCheckRadius = 0.5f; _fallFasterFactor = 10; _characterSlowFactor = 0.9f; }
public void InitCharacterAnimator() { _animator = GameObject.FindGameObjectWithTag(Tag.Player.ToString()).GetComponentInChildren <Character_Animator>(); }