public void TriggerObj(bool state) { if (state) { doorAnim.SetTrigger("OpenDoor"); } else { doorAnim.SetTrigger("CloseDoor"); } if (audioSource != null) { audioSource.PlayOtherSounds("Door"); } }
public void AddToScore(int amount) { score += amount; ChangeScoreText(); audioSource.PlayOtherSounds("Gem Pickup"); }