Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Sniperninja564 · Nov 25, 2015 at 08:57 PM · c#fontvisualstudio

Visual Studio Question

Hi I recently wrote this and made a randomized math quiz with Visual Studio in C# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;

 namespace Math_Side_Project
 {
     class MainClass
     {
         static void Main(string[] args) 
         {
             Random numberGenerator = new Random ();
 
             int num01 = numberGenerator.Next(1,12);
             int num02 = numberGenerator.Next(1,12);
 
             Console.WriteLine("It's Quiz Time!\n");
             Console.WriteLine("What is " + num01 + " times " + num02 + "?");
 
             int answer = Convert.ToInt32(Console.ReadLine());
 
             if (answer == num01 * num02){
                 Console.WriteLine("\nExellent! Your answer is correct."); 
             } else {
 
                 int responseIndex = numberGenerator.Next(1, 4);
                 switch (responseIndex) {
 
                 case 1:
                     Console.WriteLine("\nAre you even trying?");
                     break;
                 case 2:
                     Console.WriteLine("\nNice try.");
                     break;
                 case 3:
                     Console.WriteLine("\nYou are sooo close!");
                     break;
                 default:
                     Console.WriteLine("\nYou can do better then that");
                     break;
                 }
             }
             
             Console.ReadKey();
         }
     }
 }

I showed this to my friends and they liked it so I was wondering if I could possibly change the text font or at least make it look neater. Or do I have to use JS or Unity to do that?

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image gjf · Nov 25, 2015 at 07:41 PM 2
Share

that's not a specific unity question.

you could rewrite it in unity and add appropriate visual using the UI/graphics, but you could just as easily do that in windows.

avatar image Sniperninja564 gjf · Nov 26, 2015 at 04:56 PM 0
Share

Are you saying I should try to create a new project in unity and copy and paste the code there?

avatar image Bunny83 Sniperninja564 · Nov 26, 2015 at 05:34 PM 0
Share

Uhm, not really. That code won't work in Unity as Unity works way different than a console application. What he ment is that UnityAnswers (this site here) is for questions related to development with Unity3d. Your code has nothing to do with Unity at all. You might want to start looking through the Unity Basics if you're interested in learning Unity3d.

Besides that your question is off topic it also has a meaningless title. The title should reflect the actual question and not just a generic title. With that title nobody knows what this is about.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Changing a GUI Button's font in code 1 Answer

How to measure the width of a string? 0 Answers

Making a bubble level (not a game but work tool) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges