示例#1
0
 /// <summary>
 ///  Returns a reference of an entity.
 /// </summary>
 /// <param name="pUID"></param>
 /// <returns></returns>
 public IEntity GetEntity(int pUID)
 {
     // Find the entity in the _scenGraph that where UID = pUID
     foreach (IEntity e in _sceneGraph.GetEntity())
     {
         if (e.GetUID() == pUID)
         {
             // return the entity
             return(e);
         }
     }
     return(null);
 }