// Use this for initialization void Start() { GameObject cylinder = GameObject.Find("Cylinder"); m_height = cylinder.transform.localScale.y * 2; m_sphere = GameObject.Find("Sphere"); m_Gorilla = FindObjectOfType<GorillaController>(); }
// Use this for initialization void Start() { GameObject cylinder = GameObject.Find("Cylinder"); m_height = cylinder.transform.localScale.y * 2; m_sphere = GameObject.Find("Sphere"); m_Gorilla = FindObjectOfType <GorillaController>(); }