Example #1
0
        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);
        }
Example #2
0
        protected NetTranInfo GetNetTransInfo()
        {
            NetTranInfo retInfo = null;

            if (g_NetTranInfos.Count > 0)
            {
                retInfo = g_NetTranInfos.Pop();
            }
            if (null == retInfo)
            {
                retInfo = new NetTranInfo();
            }
            return(retInfo);
        }
Example #3
0
 protected void RecycleNetTranInfo(NetTranInfo info)
 {
     g_NetTranInfos.Push(info);
 }