public void Collect() { collected += 1; audio.Play(); postProcessVolume.weight -= 0.1f; if (collected == collectibles.Count - 1) { allIsCollected = true; } StartCoroutine(canvasScript.writeText(currentRoom)); }
public void Collect() { collected += 1; audio.Play(); postProcessVolume.weight -= 0.1f; if (collected == collectibles.Count - 1) { allIsCollected = true; } StartCoroutine(canvasScript.writeText(currentRoom)); }