A function refuses to run. (New to Unity)

Hello,
I’m currently working on a game and at the moment I have a problem.
The function IPScan doesn’t work, and it confuses me.
How do I fix this? Thanks in advance for anyone that can help.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using System.Threading;
using System.Collections;

public class Hacker : MonoBehaviour
{
     int level;
     enum Screen {Menu, BeginHack, IPscan, Win};
     Screen currentScreen;

    // Start is called before the first frame update

    void Start () {
        Terminal.WriteLine("Loading.");
        ShowMainMenu();

    }
            void IPScan (string scan) {
            Terminal.ClearScreen();
            Terminal.WriteLine("You chose option 3.");
            Terminal.ClearScreen();
            Terminal.WriteLine("To begin, run the following command:");
            Terminal.WriteLine("");
            Terminal.WriteLine("");
            Terminal.WriteLine("IPScan -i James@Peterson.");
            Terminal.WriteLine("This command should scan for his IP.");
            if (scan == "IPScan -i James@Peterson") {
            Terminal.WriteLine("Scanning for IP's.");
            Thread.Sleep(1000);
            Terminal.WriteLine("Checking Domains.");
            Thread.Sleep(2000);
            Terminal.WriteLine("Checking Internet Usage.");
            Thread.Sleep(3000);
            Terminal.WriteLine("One IP Found at port 22:");
            Terminal.WriteLine("192.312.313");
            Thread.Sleep(500);
            Terminal.WriteLine("To SSH, run:");
            Terminal.WriteLine("SSH Jeorge@Peterson [IP]");
        }
            else {
                Terminal.WriteLine("Unrecognized Command. Try again:");
        }
    }

    void ShowMainMenu () {
    currentScreen = Screen.Menu;
    Terminal.ClearScreen();
    Terminal.WriteLine("Welcome to the Exunomic Hub:");
    Terminal.WriteLine("Exuno Version 1.0");
    Terminal.WriteLine("");
    Terminal.WriteLine("Press 1 for Help.");
    Terminal.WriteLine("Press 2 to Learn about Garris.");
    Terminal.WriteLine("Press 3 to Start your first job.");
    Terminal.WriteLine("");
    Terminal.WriteLine("");
    }

    void OnUserInput (string input) {
        if (input == "menu") {
            ShowMainMenu();
        }

        else if (currentScreen == Screen.Menu)
        {
            QuestionSequence(input);
        }

        else {
            Terminal.WriteLine("Unknown Command.");
        }

        void QuestionSequence (string question)
        {
        if (input == "1") {
        Terminal.ClearScreen();
        Terminal.WriteLine("Hey, and welcome to the Help Screen.");
        Terminal.WriteLine("There isn't much you can do now.");
        Terminal.WriteLine("But, as you progress you'll learn more!");
        Terminal.WriteLine("Type menu to go the Menu again.");
    }
       
        else if (input == "2") {
        Terminal.ClearScreen();
        Terminal.WriteLine("Looks like Garris isn't configured.");
        Terminal.WriteLine("In order to continue, you need to");
        Terminal.WriteLine("Complete some of the missions.");
        Terminal.WriteLine("From here, you'll get Exunomics trust.");
        Terminal.WriteLine("Allowing you to meet Garris.");
        Terminal.WriteLine("");
        Terminal.WriteLine("Type menu to go to the Menu.");
    }

        else if (input == "3") {
    IPScan(input);
        {
        }
    }
    }
}

    void firstDone() {
    Terminal.WriteLine("You won!");
    }


   
}

Hi @thepricklytrees

Just asking, is this from Complete Unity Developer 2.0 tutorial course? As the content looks like it, and if it is, maybe you should go ask in this tutorial’s forum instead.

Maybe you can try to be a bit more specific as well, what do you mean by “it doesn’t work”?