Beispiel #1
0
 public GameComponent GetComponent(GameConsts.COMPONENT_TYPE type)
 {
     if (components == null)
     {
         return(null);
     }
     return(components.Where(x => x.type == type).FirstOrDefault());
 }
 public GameComponent(GameConsts.COMPONENT_TYPE type)
 {
     this.type = type;
 }