public void ResetData() { strings = new SerizDictOfString(); ints = new SerizDictOfInt(); floats = new SerizDictOfFloat(); bools = new SerizDictOfBool(); }
private void Awake() { if (strings == null) { strings = new SerizDictOfString(); } if (ints == null) { ints = new SerizDictOfInt(); } if (floats == null) { floats = new SerizDictOfFloat(); } if (bools == null) { bools = new SerizDictOfBool(); } #if UNITY_EDITOR if (selfAddableInEditMode) { TryAssign(); } #endif }