public int GetObjectCount(byte type)
{
int count = 0;
foreach(BaseObject obj in mDicObject.Values)
{
if (obj.type == type)
{
count++;
}
}
return count;
}