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