void Start() { playerManager = GetComponent <PlayerManager>(); rigidbody = GetComponent <Rigidbody>(); inputHandler = GetComponent <InputHandler>(); animatorHandler = GetComponentInChildren <AnimatorHandler>(); cameraObject = Camera.main.transform; myTransform = transform; animatorHandler.initialize(); }
void Start() { RB = GetComponent <Rigidbody>(); inputHandler = GetComponent <InputHandler>(); AnimeHandler = this.transform.GetChild(0).transform.GetComponent <AnimatorHandler>(); cameraObject = Camera.main.transform; myTransform = this.transform; AnimeHandler.init(); _speed = 2f; _pm = GetComponent <PlayerManager>(); }
void Start() { rigidbody = GetComponent <Rigidbody>(); inputHandler = GetComponent <InputHandler>(); animatorHandler = GetComponentInChildren <AnimatorHandler>(); cameraObject = Camera.main.transform; myTransform = transform; animatorHandler.initialize(); playerManager.isGrounded = true; ignoreForGroundCheck = ~(1 << 8 | 1 << 11); }
private void Awake() { animatorHandler = GetComponentInChildren <AnimatorHandler>(); inputHandler = GetComponent <InputHandler>(); }