Exemple #1
0
    public void Learning(Button button)
    {
        Text buttonText = button.transform.GetChild(0).GetComponent <Text>();

        if (buttonText.text == "Start")
        {
            resetButton.interactable = false;
            pauseButton.interactable = true;
            buttonText.text          = "Stop";
            StartCoroutine(InfoAnimate());
            StartCoroutine(LearningEnum());
        }
        else
        {
            resetButton.interactable = true;
            buttonText.text          = "Start";
            pause = false;
            pauseButton.interactable = false;
            StopLearning();
            logout.ClearLogs();
        }
    }