We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28da159 commit 936e43dCopy full SHA for 936e43d
Assets/Scripts/MathPart/GraphCreator.cs
@@ -66,7 +66,8 @@ public void CreateStartGraph() {
66
}
67
68
protected void AddTextForX() {
69
- if (sizeStepX >= 0) {
+ if (sizeStepX == 0) return;
70
+ if (sizeStepX > 0) {
71
step = sizeStepX / Xsteps;
72
for (float i = StartCoordinateX; i <= sizeStepX; i += step) {
73
addTestForX(i);
@@ -81,7 +82,8 @@ protected void AddTextForX() {
81
82
83
84
protected void AddTextForY() {
- if (sizeStepY >= 0) {
85
+ if (sizeStepY == 0) return;
86
+ if (sizeStepY > 0) {
87
step = sizeStepY / Ysteps;
88
for (float i = StartCoordinateY; i <= sizeStepY; i += step) {
89
addTestForY(i);
0 commit comments