void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Player") { anim.SetBool("Rise", true); loadLevel.SelectLevelWait2(3); other.GetComponent <PlayerController>().playerState = "Respawn"; StaticData.GameState = "End"; } }