Пример #1
0
    public static AlertViewController Show(string title, string message, AlertViewOptions options = null)
    {
        if (prefab == null)
        {
            prefab = Resources.Load("Alert View") as GameObject;
        }
        GameObject          obj       = Instantiate(prefab) as GameObject;
        AlertViewController alertView = obj.GetComponent <AlertViewController>();

        alertView.UpdateContent(title, message, options);
        return(alertView);
    }