Exemplo n.º 1
0
    public void SetUpRaceManager(RaceMode raceMode)
    {
        m_raceMode = raceMode;

        switch (raceMode)
        {
        case RaceMode.Solo:
        case RaceMode.SoloIA:
        case RaceMode.TimeAttack:
            m_carCount = 1;
            break;

        case RaceMode.VS1:
            m_carCount = 2;
            break;

        case RaceMode.VSN:
            m_carCount = 4;
            break;
        }

        SetUpInitialPositions();
        SetUpCars();
        SetUpPlayers();
        SetUpCamera();
        SetRaceCamera();

        m_uiDisplayer = Instantiate(m_uiPrefab, m_race.transform).GetComponent <UIDisplayer>();
    }
Exemplo n.º 2
0
    private void CheckShowOxygenEffect()
    {
        if (IsGameOver)
        {
            return;
        }
        float oxygenRemainPercent = (float)CurrentOxygenValue_ / PlayerDataCenter.CurrentRoleInfo.MaxOxygen;

        if (oxygenRemainPercent <= UseOutWarningPerecent_ && oxygenRemainPercent > 0.05)
        {
            UIDisplayer.SetWarningFilterActive(true);
        }
        else
        {
            UIDisplayer.SetWarningFilterActive(false);
        }
    }
Exemplo n.º 3
0
 private void UpdateTechAmount()
 {
     UIDisplayer.UpdateTechView();
 }
Exemplo n.º 4
0
 public void SetOxygenWhenLoseElectrc(float currentOxygen)
 {
     UIDisplayer.SetOxygenWhenLoseElectrc(currentOxygen);
 }
Exemplo n.º 5
0
 private void UpdateElectricityAmount()
 {
     UIDisplayer.UpdateElectricityView();
 }