void OnTriggerEnter2D(Collider2D col) { if (GameObject.ReferenceEquals(col.gameObject, player) && move.canWin) { /*if(System.IO.File.ReadAllText(@"C:\Users\Default\Desktop\level.txt")=="2") * { * dM.level = 2; * } * else * { * dM.level =1; * }*/ dM.victoryswitch = true; dM.victoryswitch3 = true; dM.victoryswitch4 = true; if (mT.iamtheone) { mT.pPause(); dM.SendMessage("LevelMessage"); } else { mTT.Glasorgel.Stop(); mTT.mysteryT.Stop(); mTT.mysteryI.Stop(); dM.SendMessage("Level2Message"); } yeetvictoreh.Play(); } }