public void Start() { Debug.Log("Create New Points Array"); gridPoints = new POINTSTATE[8, 8]; for (int x = 0; x < 8; x++) // clamping grid's x-axis size { for (int z = 0; z < 8; z++) // clamping grid's z-axis size { gridPoints[x, z] = POINTSTATE.EMPTY; } } }
public void SwitchState() { if (currentPoint <= -thresholdPoint) { PointState = POINTSTATE.BAD; } else if (currentPoint >= thresholdPoint) { PointState = POINTSTATE.GOOD; } else { PointState = POINTSTATE.NORMAL; } }
void InitPoint() { currentPoint = initialPoint; thresholdPoint = changeAmount * 2; PointState = POINTSTATE.NORMAL; }