public static void AppendAddUnloadMethod(ICodeBlock codeBlock, string saveObjectName)
        {
            var lockBlock = codeBlock.Lock("mLockObject");

            var ifBlock =
                lockBlock.If("!mRegisteredUnloads.Contains(ContentManagerName) && ContentManagerName != FlatRedBall.FlatRedBallServices.GlobalContentManager");

            ifBlock.Line("FlatRedBall.FlatRedBallServices.GetContentManagerByName(ContentManagerName).AddUnloadMethod(\"" +
                         FileManager.RemovePath(saveObjectName) +
                         "StaticUnload\", UnloadStaticContent);");

            ifBlock.Line("mRegisteredUnloads.Add(ContentManagerName);");
        }