/// <summary> /// Adds all the colors from the images to the colors array /// </summary> public void GetColorsToMenu() { Arrays_ScriptableObject newScriptable = (Arrays_ScriptableObject)so.targetObject; newScriptable.GetAllColorsFromImages(); arrays_ScriptableObject = newScriptable; OnEnable(); }
void SetScriptableObject() { if (arrays_ScriptableObject == null) { arrays_ScriptableObject = new Arrays_ScriptableObject(); } so = new SerializedObject(arrays_ScriptableObject); stringsProp[0] = so.FindProperty("textures"); stringsProp[1] = so.FindProperty("ColorMapping"); }
/// <summary> /// Create the Scene /// </summary> public void GenerateLevelButtonPress() { Arrays_ScriptableObject newScriptable = (Arrays_ScriptableObject)so.targetObject; newScriptable.CreateLevel(buildStyle, layerHight); }