Inheritance: IsoUnityType
Example #1
0
 /// <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);
         }
     }
 }
Example #2
0
 public override IsoUnityType clone()
 {
     return(IsoUnityBasicType.CreateInstance <IsoUnityBasicType>());
 }
Example #3
0
 void Awake()
 {
     if(state == null){
         state = ScriptableObject.CreateInstance<IsoUnityBasicType>();
     }
 }
Example #4
0
 void OnEnable()
 {
     if(value == null)
         value = ScriptableObject.CreateInstance<IsoUnityBasicType>();
 }