Why when i run i̇t doesn t show i̇f true or false

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Threading.Tasks;
using System.Drawing;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
using System.Text;
using Random = UnityEngine.Random;

public class fouroperator : MonoBehaviour
{
    public UnityEngine.UI.Text firstNumber;
    public UnityEngine.UI.Text operatour;
    public UnityEngine.UI.Text  sappend;
    public UnityEngine.UI.Text sesult;
    public UnityEngine.UI.Text secondNumber;
    int number1;
    int number2;
    int oper3;
    int islemSonuc;

    // Start is called before the first frame update
    void Start()
    {
        number1 = Random.Range(1, 10);
        number2 = Random.Range(1, 10);
        oper3 = Random.Range(1, 4);
        switch (oper3)
        {

            case 1:
                operatour.text = "+";
                islemSonuc = number1 + number2;

                break;
            case 2:
                operatour.text = "-";
                islemSonuc = number1 - number2;
                break;
            case 3:
                operatour.text = "*";
                islemSonuc = number1 * number2;
                break;
            case 4:
                operatour.text = "/";
                islemSonuc = number1 / number2;
                break;
}
        firstNumber.text = number1 + "";
        secondNumber.text = number2 + "";
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    public void answer()
    {

        if (int.Parse(sesult.text)== islemSonuc)
        {
            Console.WriteLine("TRUE");

            

        }else
        {
            Console.WriteLine("FALSE");


        }
    }
}

WHY WHEN I EUN İT DOESN T SHOW İF TRUE OR FALSE

Hi @eno_mar,

Welcome to our community! Enjoy the course and happy coding! :slight_smile:

In which course and lecture are you?

i m in udemy course nıot here

can you help me if you know ? :upside_down_face:

Which Udemy course? What’s the name of the course? And in which lecture are you?

https://www.udemy.com/course/unity-oyun-gelistirme/learn/lecture/21285516#questions

This one ,and new I M programmer
student

Thank you for the link. Unfortunately, that instructor is not part of the GameDev.tv team, so we cannot help you with this. I’d suggest to ask a question in the Q&A section of his course on Udemy.

hello can you give me a link udemy for yours lesson?

I wont to learn 3d 2d unity

You can find our courses here:

And on Udemy:
https://www.udemy.com/user/gamedevtv/

thank you … :upside_down_face:

and if I sign this course and I have a problem I CAN asked here correct?

If you need help with the content of GameDev.tv courses and cannot find a solution, feel free to create a thread, describe the problem, share what you did/have/see, and we will provide support as soon as possible. :slight_smile:

Generally, you may always ask questions even if you are not enrolled in one of our courses. It is just unlikely that we will be able to help you with content that is not created by a GameDev.tv instructor.

ok thank you, i like your system that it will join soon :upside_down_face:

My English is a little bad, I’m sorry :slightly_smiling_face: :upside_down_face:

hello I started this course
lesson
thank you for help me :upside_down_face:

If you have questions about the Unreal course or need help with it, please feel free to create a thread in our Unreal subforum: https://community.gamedev.tv/c/unreal/ask/200

Or on Udemy. :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms