Ejemplo n.º 1
0
        internal static void ExecPoints()
        {
            Console.WriteLine("Points !");
            Console.WriteLine("Pays 1:");
            Country ct1 = ViewCountry.NewCountry(true);

            Console.WriteLine("Pays 2:");

            Country ct2    = ViewCountry.NewCountry(true);
            int     coeff  = ViewPoints.GetCoeff();
            int     diff   = ct1.Score - ct2.Score;
            Points  points = CalcPoints.DoCalcPoints(ct1.Pts, ct2.Pts, coeff, diff);

            ct1.Pts = points.Pts1;
            ct2.Pts = points.Pts2;
            ViewPoints.DoViewPoints(ct1, ct2);
        }
Ejemplo n.º 2
0
    void SelectCar(int index)
    {
        if (CurrentCar)
        {
            CurrentCar.Enable = false;
        }

        CurrentCarIndex = index;
        if (CurrentCarIndex >= Cars.Count)
        {
            CurrentCarIndex = 0;
        }

        CurrentCar        = Cars[CurrentCarIndex];
        CurrentCar.Enable = true;

        CurrebtViewPoints = CurrentCar.GetComponent <ViewPoints>();
        CameraController.SetViewPoints(CurrebtViewPoints);
    }
Ejemplo n.º 3
0
 public void SetViewPoints(ViewPoints vp)
 {
     ViewPoints = vp;
 }