Beispiel #1
0
 protected void End()
 {
     m_cRemoteTree.Clear();
     StopMove();
     //回收远程
     BattleScene.Instance.DestroyRemote(this);
 }
        public void SaveRemoteTree(int configId, RemoteTree remoteTree)
        {
            Queue <RemoteTree> queue = null;

            if (!m_dicPool.TryGetValue(configId, out queue))
            {
                queue = new Queue <RemoteTree>();
                m_dicPool.Add(configId, queue);
            }
            remoteTree.Clear();
            queue.Enqueue(remoteTree);
        }