Beispiel #1
0
    public void Delete()
    {
        for (int i = 0; i < temps.Count; i++)
        {
            Destroy(temps[i]);
        }
        temps.Clear();

        PanelAsk.SetActive(true);
    }
Beispiel #2
0
    public void Field()
    {
        bool isNumber;

        PanelError.SetActive(false);
        isNumber = int.TryParse(myField.text, out count);
        if (isNumber && count <= 15 && count > 0)
        {
            Gener();
            PanelAsk.SetActive(false);
        }
        else
        {
            PanelError.SetActive(true);
            Error.text = "Error";
        }
    }