Ejemplo n.º 1
0
 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;
         }
     }
 }
Ejemplo n.º 2
0
 public void SwitchState()
 {
     if (currentPoint <= -thresholdPoint)
     {
         PointState = POINTSTATE.BAD;
     }
     else if (currentPoint >= thresholdPoint)
     {
         PointState = POINTSTATE.GOOD;
     }
     else
     {
         PointState = POINTSTATE.NORMAL;
     }
 }
Ejemplo n.º 3
0
 void InitPoint()
 {
     currentPoint   = initialPoint;
     thresholdPoint = changeAmount * 2;
     PointState     = POINTSTATE.NORMAL;
 }