예제 #1
0
        static void Main(string[] args)
        {
            intro    introduction = new intro();
            charInfo profile      = new charInfo();

            // Start the game with an introduction!
            Console.WriteLine(introduction.heythere);
            Console.Write(introduction.askname);

            // store the name into charInfo.cs
            profile.name = Console.ReadLine();

            // verify name
            Console.Write("\nSo your name is " + profile.name + "? (y or n) ");
            bool nameVerify = Console.ReadLine().ToLower() == "y" || Console.ReadLine().ToLower() == "yes";

            // cycle verification of name until name = true
            while (nameVerify != true)
            {
                Console.Write("Then what is your name? ");
                profile.name = Console.ReadLine();

                Console.Write("Is " + profile.name + " your correct name? (y or n) ");
                nameVerify = Console.ReadLine() == "y";
            }

            Console.WriteLine("\nHmm... I see,");
            Console.ReadKey();
            Console.WriteLine("\nWelcome, " + profile.name);
        }
예제 #2
0
        private void timer6_Tick(object sender, EventArgs e)
        {
            var intro = new intro();

            intro.Show();
            timer6.Stop();
        }
예제 #3
0
    private void Awake()
    {
        cam = GameObject.FindGameObjectWithTag("cam");

        intro = cam.GetComponent <intro>();
    }
예제 #4
0
        public void introRunTest()
        {
            intro splash = new intro();

            Assert.IsNotNull(splash);
        }
예제 #5
0
 // Start is called before the first frame update
 void Start()
 {
     walker = new intro();
 }