public void Dispose() { if (_instance != null) { _instance._MaterialList = null; _instance = null; } else { REngine.Instance.AddToLog("RMaterialFactory cannot be destroyed, cannot find instance!"); } }
public RMaterialFactory() { if (_instance == null) _instance = this; }