void OnMouseReleased(Vector3 dropPosition) { dropPosition.z = 0.0f; AudioManager.singleton.PlaySfx(massHit); GameObject holeSpawned = Instantiate(holePrefab, dropPosition, Quaternion.identity); bilge.AddHole(holeSpawned); Hole h = holeSpawned.GetComponent <Hole> (); h.bilge = bilge; h.OnCreateHole(); }