// Collect objects public void collectSecret(GameObject shhhh) { persistentDataScript.CollectSecret(); if (Secrets.Contains(shhhh)) { int index = Secrets.IndexOf(shhhh); collectedSecrets[index] = 1; } }
// Collect objects public void collectSecret(GameObject shhhh) { persistentDataScript.CollectSecret(); if (Secrets.Contains(shhhh)) { int index = Secrets.IndexOf(shhhh); collectedSecrets[index] = 1; } }