public bool TryLoadContent() { if (content != null) { return(true); } ContentLoadResult result = ContentLoader.LoadContent(nameKey); content = result.content; return(result.isSuccess); }
public bool TryLoadContent(out object outContent) { bool isSuccess = true; if (content == null) { ContentLoadResult result = ContentLoader.LoadContent(nameKey); isSuccess = result.isSuccess; content = result.content; } outContent = content; return(isSuccess); }