protected void CreateGameObject(string gameObjectName)
{
gameObject = new GameObject(gameObjectName);
cachedTransform = gameObject.transform;
if (Application.isPlaying)
Object.DontDestroyOnLoad(gameObject);
gameObject.hideFlags = DisplayOptions.hideFlags;
gameObject.SetActive(false);
_ownsGameObject = true;
}