Esempio n. 1
0
    public void Init()
    {
        Localization.selectLanguage("RU");
        m_gameSpeed = 1.0f;

        var rocketPrefab = RocketList.GetRocketPrefab(0);
        var enginePrefab = RocketList.GetEnginePrefab(0);

        m_rocketControl = RocketControl.Create(rocketPrefab, enginePrefab, m_playerTransform);
        OnRocketCreated?.Invoke(m_rocketControl);

        soundController.PlayMusic(Resources.Load <AudioClip>(AudioList.getAudioPath(getAudioNames() [0])));

        SetPause(true);
    }