DarkEmu_GameServer.Systems.GetObject C# (CSharp) Method

GetObject() private method

private GetObject ( int id ) : obj
id int
return obj
        obj GetObject(int id)
        {
            try
            {
                for (int i = 0; i <= Systems.Objects.Count - 1; i++)
                {
                    if (Systems.Objects[i] != null && Systems.Objects[i].UniqueID == id)
                        return Systems.Objects[i];
                }
            }
            catch (Exception ex)
            {
                Systems.Debugger.Write(ex);
            }
            return null;
        }
Systems