private void randomMessage() { switch (randomTracker) { case 0: talkTracker = 11; break; case 1: talkTracker = 12; break; case 2: talkTracker = 13; break; } randomTracker++; soundSystem.shootSound("sparkles"); n.flashFeedback(); if (routine != null) { StopCoroutine(routine); } routine = StartCoroutine(PlayText(talkTracker)); }
public void makeActive() { active = true; Sprite t = s.monolithTexts[s.monolithsRead]; s.monolithActivated(); image.material.SetTexture("_MainTex", t.texture); image.sprite = t; GetComponent <Renderer>().enabled = true; tear.GetComponent <Renderer>().enabled = true; canvas.alpha = 1f; soundSystem.addEnergy(5f); soundSystem.shootSound("sparkles"); n.flashFeedback(); }