Exemplo n.º 1
0
    private void OnTestStateChange(TestStateMissive missive)
    {
        CancelInvoke();
        switch (missive.state)
        {
        case TestState.None:
            DeSpawnNPCVehicles();
            DespawnTestVehicle();
            break;

        case TestState.Init:
            SpawnVehicles();
            break;

        case TestState.Warmup:
            //
            break;

        case TestState.Running:
            SetTestVehicleSpeed();
            SetNPCVehicleSpeed();
            break;

        default:
            break;
        }
    }
Exemplo n.º 2
0
    private void OnTestStateChange(TestStateMissive missive)
    {
        switch (missive.state)
        {
        case TestState.None:
            ToggleSceneCamera(true);
            ToggleMainMenu(true);
            ToggleHelp(true);
            break;

        case TestState.Init:
            ToggleSceneCamera(false);
            break;

        case TestState.Warmup:
            break;

        case TestState.Running:
            break;

        default:
            break;
        }
        SetStateText(missive.state.ToString());
    }
Exemplo n.º 3
0
    public void SetTestState(TestState state)
    {
        currentTestState = state;
        TestStateMissive missive = new TestStateMissive
        {
            state = currentTestState
        };

        Missive.Send(missive);
    }
Exemplo n.º 4
0
    private void OnTestStateChange(TestStateMissive missive)
    {
        switch (missive.state)
        {
        case TestState.None:
            ResetRoad();
            break;

        case TestState.Init:
            InitRoad();
            break;

        case TestState.Warmup:
            break;

        case TestState.Running:
            break;

        default:
            break;
        }
    }