private void OnEnable()
 {
     tileCreater = (TileCreater)target;
     for (int i = 0; i < PropertyStrings.Length; ++i)
     {
         serializeProperty[i] = serializedObject.FindProperty(PropertyStrings[i]);
     }
 }
Exemple #2
0
        public static TileCreater GetInstance()
        {
            if (!instance)
            {
                instance = GameObject.FindObjectOfType <TileCreater>();
            }

            return(instance);
        }