Ejemplo n.º 1
0
    /// <summary>
    /// Loads demo
    /// </summary>
    public void LoadDemo()
    {
        trackManager.LoadTrackLayout("DemoTrackLayout");
        trainManager.SpawnDemoConsists();

        //Set camera to player train
        Camera.main.GetComponent <MouseOrbit>().target = trainManager.trains[0].transform;
    }