void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "Player" && !played) { audio.playAudio(number); played = true; } }
void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "Player") { audio.playAudio(6); barThree.transform.parent.gameObject.SetActive(true); foreach (WhiteLieSpawner s in spawners) { s.stage = 1; } entranceBlock.SetActive(true); exitBlock.SetActive(true); GetComponent <BoxCollider2D>().enabled = false; } }
public void death() { controller.shootAllProjectiles(); block.SetActive(false); audio.playAudio(7); }