private void Awake() { //Make sure the rigidbody obeys the rules var rb = this.GetComponent <Rigidbody>(); if (rb != null) { rb.useGravity = false; } if (_heightProvider == null) { _heightProvider = ResolveProvider(); } }
private void Awake() { //Make sure the rigidbody obeys the rules var rb = this.GetComponent<Rigidbody>(); if (rb != null) { rb.useGravity = false; } if (_heightProvider == null) { _heightProvider = ResolveProvider(); } }