Patrol.ChoicePatrol C# (CSharp) Method

ChoicePatrol() public method

public ChoicePatrol ( int x ) : void
x int
return void
    public void ChoicePatrol(int x)
    {
        previousPatrolTarget = patrolTarget;

          patrolTarget = new Vector3[x];
          patrolMarkers = new GameObject[x];

        if(x == 4)
          SquarePatrol();
        else if (x == 3)
           TrianglePatrol();
         else LinePatrol();
    }