摘要:
function OnNetworkInstantiate (msg : NetworkMessageInfo) {// This is our own playerif (networkView.isMine){Camera.main.SendMessage("SetTarget", transform);GetComponent("NetworkInterpolatedTransform").enabled = false;}// This is just some remote controlled playerelse{name += " 阅读全文
posted @ 2011-09-03 09:38
softimagewht
阅读(253)
评论(0)
推荐(0)
摘要:
using UnityEngine;using System.Collections;public class NetworkInterpolatedTransform : MonoBehaviour {public double interpolationBackTime = 0.1; internal struct State{internal double timestamp;internal Vector3 pos;internal Quaternion rot;}// We store twenty states with "playback" informati 阅读全文
posted @ 2011-09-03 09:35
softimagewht
阅读(568)
评论(0)
推荐(0)

浙公网安备 33010602011771号