/// <summary> /// Destroy basic values inside a table of parameters. /// </summary> /// <param name="args">The table of parameters.</param> private static void destroyBasic(Dictionary <string, Object> args) { if (args == null || args.Count == 0) { return; } foreach (KeyValuePair <string, Object> entry in args) { if (entry.Value is IsoUnityBasicType) { IsoUnityBasicType.DestroyImmediate(entry.Value); } } }
public override IsoUnityType clone() { return(IsoUnityBasicType.CreateInstance <IsoUnityBasicType>()); }
void Awake() { if(state == null){ state = ScriptableObject.CreateInstance<IsoUnityBasicType>(); } }
void OnEnable() { if(value == null) value = ScriptableObject.CreateInstance<IsoUnityBasicType>(); }