public static GUIAlertDialog Create(string _title, string _message, string[] _buttonList, GUIAlertDialogResult _delegate)
		{
			GameObject _alertDialogGameObject 	= new GameObject("AlertDialog");
			GUIAlertDialog _instance 			= _alertDialogGameObject.AddComponent<GUIAlertDialog>();


			_instance.Title 		= _title;
			_instance.Message 		= _message;
			_instance.ButtonList 	= _buttonList;
			_instance.Delegate		= _delegate;

			return _instance;
		}
Ejemplo n.º 2
0
        public static GUIAlertDialog Create(string _title, string _message, string[] _buttonList, GUIAlertDialogResult _delegate)
        {
            GameObject     _alertDialogGameObject = new GameObject("AlertDialog");
            GUIAlertDialog _instance = _alertDialogGameObject.AddComponent <GUIAlertDialog>();


            _instance.Title      = _title;
            _instance.Message    = _message;
            _instance.ButtonList = _buttonList;
            _instance.Delegate   = _delegate;

            return(_instance);
        }