// Use this for initialization void Start() { fish = GameObject.Find("Fish_Player"); fishOxygen = fish.gameObject.GetComponent <FishOxygen>(); transform.position = CreateAirPosition(); StartCoroutine(SeagullLoop()); }
void Start() { fishMovement = GetComponent <FishMovement>(); fishOxygen = GetComponent <FishOxygen>(); fishIndicators = GetComponent <FishIndicators>(); rb = GetComponent <Rigidbody>(); respawning = false; wonLevel = false; }