Пример #1
0
    public TWWarning AddWarning(string title, string content, TWBoard.yes ondone = null)
    {
        GameObject g = AddPbjectWarning(Getprefap("Warning"));
        TWWarning  t = g.GetComponent <TWWarning>();

        Settext(t, title, content);
        t.AddYes(ondone);
        return(t);
    }
Пример #2
0
    public TWWarningInput AddWarningInput(string title, string content, TWBoard.yes onyes = null, TWBoard.no onno = null)
    {
        GameObject     g = AddPbjectWarning(Getprefap("WarningInput"));
        TWWarningInput t = g.GetComponent <TWWarningInput>();

        Settext(t, title, content);
        t.AddYes(onyes);
        t.AddNo(onno);
        return(t);
    }
Пример #3
0
    public static GameObject AddLoading(TWBoard.yes onyes = null, int timeout = 0)
    {
        GameObject g = I.AddPbjectWarning(I.Getprefap("Loading"));

        g.transform.localScale = Vector3.one;
        if (timeout > 0)
        {
            I.StartCoroutine(autorevwlading(timeout));
        }
        TWLoading t = g.GetComponent <TWLoading>();

        t.AddYes(onyes);
        t.d_time = 1.0f / timeout;
        return(g);
    }