public static void AttachToGameObject(GameObject gameObject)
{
if (gameObject != null)
{
gameObject.AddComponent<UnityInitializer>();
UnityEngine.Debug.Log(string.Format(@"Attached unity initializer to {0}", gameObject.name));
}
else
{
throw new ArgumentNullException("gameObject");
}
}