コード例 #1
0
 public void ResetData()
 {
     strings = new SerizDictOfString();
     ints    = new SerizDictOfInt();
     floats  = new SerizDictOfFloat();
     bools   = new SerizDictOfBool();
 }
コード例 #2
0
        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
        }