void Update() { if (fm == null) { fm = GameObject.Find("FishManager(Clone)").GetComponent <FishManager>(); } count = fm.FishCount(); }