Ejemplo n.º 1
0
 /// <summary>
 /// Gets and returns the instance of all <see cref="Component"/>s
 /// of type <typeparamref name="T"/> attached to this <see cref="GameElement"/>.
 /// </summary>
 /// <typeparam name="T">The type of <see cref="Component"/> to return.</typeparam>
 protected T[] GetComponents <T>() where T : Component
 {
     return(_gameElement != null?_gameElement.GetComponents <T>() : null);
 }