Dispose() public method

public Dispose ( ) : void
return void
Exemplo n.º 1
0
 public void RemovePlayObject(PlayerObject obj)
 {
     //从地图中删除
     if (obj == null) return;
     if (obj.GetGameMap() != null)
     {
         obj.GetGameMap().RemoveObj(obj);
     }
     obj.Dispose();
     if (m_DicPlayerObject.ContainsKey(obj.GetGameID()))
     {
         m_DicPlayerObject.Remove(obj.GetGameID());
     }
 }