Russian greeting

There is my code)

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

public class NumberWizard : MonoBehaviour
{
    int max = 1000;
    int min = 1;
    int guess = 500;

    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("Здравствуй товарищ в игру Магия Чисел!\nWelcome comrade to the game Number Wizard!\n\n" +
                 $"Just think any number between {min} nad {max} and i will guess it.\n\n" +
                 $"Tell me if your number is higher or lower than {guess}:\n\n" +
                  "Push Up = Higher\nPush Down = Lower\nPush Enter = Correct\n\n");
        max++;
    }   

    // Update is called once per frame
    void Update()
    {
        guess = (max + min) / 2;
        
        if (Input.GetKeyDown(KeyCode.UpArrow))
        {
            min = guess;
            Debug.Log($"The Number is Higher than {guess}");
        }
        else if (Input.GetKeyDown(KeyCode.DownArrow))
        {
            max = guess;
            Debug.Log($"The Number is Lower than {guess}");
        }
        else if (Input.GetKeyDown(KeyCode.Return))
        {
            Debug.Log($"Correct! The Number was {guess}");
        }
        //else Debug.Log("Please push the button listed up");
    }
}

Privacy & Terms