Exemple #1
0
    public void GameOver()
    {
        WheelRot [] wheel = gameObject.GetComponentsInChildren <WheelRot> ();
        foreach (WheelRot w in wheel)
        {
            w.carStatus = WheelRot.CarStatus.stop;
        }

        TweenTransform tt = Camera.main.GetComponent <TweenTransform> ();

        tt.to = cameraOrigin.transform;
        tt.Toggle();
        EventDelegate.Add(tt.onFinished, ReuseCameraScript);
    }