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

            return(instance);
        }