找回密码
 立即注册
楼主: 神秘入侵者

[基础] c#中文版电子书

   火... [复制链接]
发表于 2016-4-1 10:21 | 显示全部楼层

不知道说什么轻轻飘过
发表于 2016-4-13 17:14 | 显示全部楼层
using UnityEngine;
using System.Collections;

public class insert : MonoBehaviour {
        private string url="http://localhost:50163/WebSite2/Default.aspx";//本地地址
        private string txt_Name="";
        private string txt_Score="";
        private string txt_Message="";
        // Use this for initialization
        void Start () {
        
        }
        
        // Update is called once per frame
        void Update () {
        
        }
        void OnGUI()
        {
                txt_Name=GUI.TextField(new Rect(10,10,100,30),txt_Name);
                txt_Score=GUI.TextField(new Rect(10,50,100,30),txt_Score);
                txt_Message=GUI.TextField(new Rect(10,90,100,30),txt_Message);
                if(GUI.Button(new Rect(10,130,100,30),"submit"))
                {
                        StartCoroutine(InsertMethod());
                }
        }
        IEnumerator InsertMethod()
        {
                WWWForm form=new WWWForm();
                form.AddField("post_name",txt_Name);
                form.AddField("post_score",txt_Score);
                form.AddField("post_message",txt_Message);
                WWW w=new WWW(url,form);
         yield return w;
                print (w.text);
                
        }
}
发表于 2016-4-16 12:11 | 显示全部楼层

不错 不错 不错
发表于 2016-4-17 23:07 | 显示全部楼层

我很懒,只想回复看看,另感谢楼主分享
发表于 2016-4-25 17:11 | 显示全部楼层

不错 不错 不错
发表于 2016-4-25 21:54 | 显示全部楼层
感谢楼主的无私分享++
发表于 2016-5-2 18:23 | 显示全部楼层
非常感谢 谢谢分享
发表于 2016-5-3 23:51 | 显示全部楼层
123123123123
发表于 2016-5-5 09:34 | 显示全部楼层
666666666666666666
发表于 2016-5-5 09:39 | 显示全部楼层

感谢楼主的无私分享!
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-5-27 11:03 , Processed in 0.087567 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表