public Texture2D GetTexture(string name) { if (!m_textures.TryGetValue(name, out Texture2D value)) { value = BlocksTexturesManager.LoadTexture(name); m_textures.Add(name, value); } return(value); }
public void LoadBlocksTexture() { SubsystemGameInfo subsystemGameInfo = base.Project.FindSubsystem <SubsystemGameInfo>(throwOnError: true); BlocksTexture = BlocksTexturesManager.LoadTexture(subsystemGameInfo.WorldSettings.BlocksTextureName); }