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); }
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); }
public void SetViewPoints(ViewPoints vp) { ViewPoints = vp; }