public void RemoveFork(Checkable fork) { this.forks.Remove(fork); #if UNITY_EDITOR if (Application.isEditor && !Application.isPlaying) { // If this is an asset and the condition isnt if (UnityEditor.AssetDatabase.IsSubAsset(fork)) { // Capture it inside me ScriptableObject.DestroyImmediate(fork, true); UnityEditor.AssetDatabase.SaveAssets(); } } #endif }
public void RemoveFork(Checkable fork) { this.forkGroup.RemoveFork(fork); }
public Option(string text = "", string parameter = "", Checkable fork = null) { this.text = text; this.parameter = parameter; this.fork = fork; }
public void AddFork(Checkable fork) { this.forkGroup.AddFork(fork); }