public void SetCompletedState(int index, CompletedState state) { if (this.states == null || this.states.Length != STATES_COUNT) { this.states = new CompletedState[STATES_COUNT]; } var oldState = this.states[index]; if (oldState != state) { this.states[index] = state; FlowSystem.SetDirty(); } }
public static void SetZoom(float value) { if (FlowSystem.instance == null || FlowSystem.instance.data == null) { return; } var changed = (FlowSystem.instance.data.zoom != value); if (value > 0.98f) { value = 1f; } FlowSystem.instance.data.zoom = value; if (changed == true) { FlowSystem.SetDirty(); } }