void Start() { body = gameObject.GetComponentInParent <Rigidbody> (); water = GameObject.Find("MainWaterPlane").GetComponentInChildren <BuoyancyPlane> (); if (floaterCount == 0) { floaterCount = gameObject.GetComponentsInParent <Floater> ().Count(); } }
void Start() { body = gameObject.GetComponentInParent<Rigidbody> (); water = GameObject.Find ("MainWaterPlane").GetComponentInChildren<BuoyancyPlane> (); if (floaterCount == 0) { floaterCount = gameObject.GetComponentsInParent<Floater> ().Count (); } }
void Start() { water = GameObject.Find ("MainWaterPlane").GetComponentInChildren<BuoyancyPlane> (); }
void Start() { water = GameObject.Find("MainWaterPlane").GetComponentInChildren <BuoyancyPlane> (); }