//Code run when the Player enters a string into the console. void CheckCode() //Fuskkoder. Shhh!! { switch (consoleField.text.ToUpper()) { case "DEJAVU": speedLines = GameObject.Find("Speedlines").GetComponent(); dejaVuActive = !dejaVuActive; if (dejaVuActive) sprint.AddListener(PlayDejaVu); else sprint.RemoveListener(PlayDejaVu); break; } consoleField.text = ""; ActivateConsole(); }