Ejemplo n.º 1
0
    void Start()
    {
        introDisplay = FindObjectOfType <IntroDisplay>();
        if (introDisplay == null)
        {
            throw new System.Exception($"Unable to find object of type {nameof(IntroDisplay)}");
        }

        vehiclePhysicsController = FindObjectOfType <VehiclePhysicsController>();
        if (vehiclePhysicsController == null)
        {
            throw new System.Exception($"Unable to find object of type {nameof(VehiclePhysicsController)}");
        }

        sceneLoader = FindObjectOfType <SceneLoader>();
        if (sceneLoader == null)
        {
            throw new System.Exception($"Unable to find object of type {nameof(SceneLoader)}");
        }

        Time.timeScale = timeScale;

        StartCoroutine(StartGame());
    }
Ejemplo n.º 2
0
 public ConsoleProgram(IntroDisplay introDisplay, TwittootConsoleLogic logic)
 {
     _introDisplay = introDisplay;
     _logic        = logic;
 }