void Start() { GameObject ocean = GameObject.Find("Ocean"); if(ocean == null) { Debug.Log("Could not find ocean game object"); return; } m_ocean = ocean.GetComponent<Ocean>(); if(m_ocean == null) Debug.Log("Could not find ocean script"); }
void Start() { GameObject ocean = GameObject.Find("Ocean"); if (ocean == null) { Debug.Log("Could not find ocean game object"); return; } m_ocean = ocean.GetComponent <Ocean>(); if (m_ocean == null) { Debug.Log("Could not find ocean script"); } }