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
        }
Exemple #2
0
 public void RemoveFork(Checkable fork)
 {
     this.forkGroup.RemoveFork(fork);
 }
Exemple #3
0
 public Option(string text = "", string parameter = "", Checkable fork = null)
 {
     this.text      = text;
     this.parameter = parameter;
     this.fork      = fork;
 }
Exemple #4
0
 public void AddFork(Checkable fork)
 {
     this.forkGroup.AddFork(fork);
 }