Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

Commit

Permalink
Make the GameObject extensions internal.
Browse files Browse the repository at this point in the history
So I don't have to document them.
  • Loading branch information
taniwha committed Aug 1, 2014
1 parent 84f5948 commit d775479
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/CommonAPI/GameObjectExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
using KSP.IO;

namespace KSPAPIExtensions {
public static class GameObjectExtension
internal static class GameObjectExtension
{
public static T AddTaggedComponent<T> (this GameObject go) where T : Component
internal static T AddTaggedComponent<T> (this GameObject go) where T : Component
{
Type taggedType = SystemUtils.VersionTaggedType(typeof(T));
return (T)go.AddComponent(taggedType);
}
public static T GetTaggedComponent<T> (this GameObject go) where T : Component
internal static T GetTaggedComponent<T> (this GameObject go) where T : Component
{
Type taggedType = SystemUtils.VersionTaggedType(typeof(T));
return (T)go.GetComponent(taggedType);
Expand Down

0 comments on commit d775479

Please sign in to comment.