public void AddNetTransInfo(Vector3 pos, Vector3 rot, SpeedState speed, double controllerTime) { NetTranInfo netTransInfo = GetNetTransInfo(); netTransInfo.pos = pos; netTransInfo.rot = rot; netTransInfo.speed = speed; netTransInfo.contrllerTime = controllerTime; mNetTransInfos.Add(netTransInfo); }
protected NetTranInfo GetNetTransInfo() { NetTranInfo retInfo = null; if (g_NetTranInfos.Count > 0) { retInfo = g_NetTranInfos.Pop(); } if (null == retInfo) { retInfo = new NetTranInfo(); } return(retInfo); }
protected void RecycleNetTranInfo(NetTranInfo info) { g_NetTranInfos.Push(info); }