public Textbox(Window source, Player player, Vector2 position, Vector2 size, HandleText handleTextFunction) : base(source) { this.handleTextFunction = handleTextFunction; box = new Window(player.map, Game.content.Load <Texture2D>("Textures\\Windows\\windowskin"), position, (int)size.X, (int)size.Y); box.WindowDepth = Game.WindowDepth.windowsInWindows; font = Game.content.Load <SpriteFont>("Fonts\\Debug1"); input = new Text(font, Vector2.Zero, Color.Black, InputString, box); cursor = new Text(font, Vector2.Zero, Color.Black, "_", box); }
public void EndGame() { CanvasHighScore.SetActive(true); CanvasTimer.SetActive(false); HandleText.LoadPlayer(); MySwap(); if (MyNewPoints >= 150) { Audio[0].gameObject.SetActive(true); } else if (MyNewPoints > 0 && MyNewPoints < 150) { Audio[1].gameObject.SetActive(true); } else if (MyNewPoints < 0) { Audio[2].gameObject.SetActive(true); } myState = States.HighScore; }