A greeting from Japan

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

public class NumberWizard : MonoBehaviour
{
private int _max = 1000;
private int _min = 1;
private int _guess = 500;

// Start is called before the first frame update
void Start()
{
    
    Debug.Log("Konnichiwa , welcome to number wizard!");
    Debug.Log("Please pick a number:");
    Debug.Log("The highest number you can pick is: " + _max);
    Debug.Log("The lowest you can pick is: " + _min);
    Debug.Log("Tell me if you number is higher or lower than " + _guess);
    Debug.Log("Push Up = Higher, Push Down = Lower, Push Enter = Correct");
    _max++;
}

// Update is called once per frame
void Update()
{
    if (Input.GetKeyDown(KeyCode.UpArrow))
    {
        Debug.Log("UpArrow key was pressed");
        _min = _guess;
        _guess = (_max + _min) / 2;
        Debug.Log(_guess);
    }
    else if (Input.GetKeyDown(KeyCode.DownArrow))
    {
        Debug.Log("DownArrow key was pressed");
        _max = _guess;
        _guess = (_max + _min) / 2;
        Debug.Log(_guess);
    }
    else if (Input.GetKeyDown(KeyCode.Return))
    {
        Debug.Log("Return key was pressed");
    }
}

}

こんにけは(konnichiwa), it means the greetring that β€œhow do you do?”.

1 Like

こんにけは means hello, not how do you do. How do you do is γ―γ˜γ‚γΎγ—γ¦.

1 Like

Thanks for your reply. I apologize for my post to make some misunderstanding.
In my brain, nice to meet you is means γ―γ˜γ‚γΎγ—γ¦. And how do you do contains Nice to meet you and How are you two meaning.
Maybe I need say only means How are you?

1 Like

Hi! Nice project by the way!
You just need to work a little bit for the story and not sure if those private variables will
work for project. They must be global, so can work in all parts of your projects. Anyway keep going! :slight_smile:

Privacy & Terms