// Start is called before the first frame update void Start() { spriteRenderer = GetComponent <SpriteRenderer>(); animator = GetComponent <Animator>(); rigidBody = GetComponent <Rigidbody2D>(); inputHandler = GetComponent <InputHandler>(); inputHandler.AddInputReceiverRegisterAwaiter(this); }
// Start is called before the first frame update void Start() { inputHandler = GetComponent <InputHandler>(); inputHandler.AddInputReceiverRegisterAwaiter(this); }