Example #1
0
    void Start()
    {
        body  = gameObject.GetComponentInParent <Rigidbody> ();
        water = GameObject.Find("MainWaterPlane").GetComponentInChildren <BuoyancyPlane> ();

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

        if (floaterCount == 0)
        {
            floaterCount = gameObject.GetComponentsInParent<Floater> ().Count ();
        }
    }
Example #3
0
 void Start()
 {
     water = GameObject.Find ("MainWaterPlane").GetComponentInChildren<BuoyancyPlane> ();
 }
Example #4
0
 void Start()
 {
     water = GameObject.Find("MainWaterPlane").GetComponentInChildren <BuoyancyPlane> ();
 }