protected virtual void Awake() { heroInterac = GetComponentInChildren <HeroInteractor> (); rigidBody2D = GetComponent <Rigidbody2D> (); //get the animator animator = GetComponentInChildren <Animator> (); gravityOriginal = rigidBody2D.gravityScale; CalculateJumpForce(); CalculateWalkingMotorAngularSpeed(); }
protected virtual void Awake () { heroInterac = GetComponentInChildren<HeroInteractor> (); rigidBody2D = GetComponent<Rigidbody2D> (); //get the animator animator = GetComponentInChildren<Animator> (); gravityOriginal = rigidBody2D.gravityScale; CalculateJumpForce (); CalculateWalkingMotorAngularSpeed (); }