摘要: http://bbs.9ria.com/thread-115434-1-2.html介绍一下UNITY3D与WEB交互的方法,包含传入和传出通过web,url传入数值的方法:代码:var version : int = 1;function CheckVersion (){ var update_url = "http://mysite.com/myGame/version.txt"; update_post = WWW(update_url); yield update_post; //等待数据传递 if(update_post.error) { print(" 阅读全文
posted @ 2012-08-02 17:00 渡蓝 阅读(386) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine;using System.Collections;public class RonmandMove : MonoBehaviour { // Use this for initialization Vector3 randomPoint = Vector3.zero; bool moving = false; void Awake() { randomPoint = new Vector3(Random.Range(-30,30),transform.position.y,Rand... 阅读全文
posted @ 2012-08-02 14:10 渡蓝 阅读(320) 评论(0) 推荐(0) 编辑