Exemple #1
0
    // Start is called before the first frame update
    void Start()
    {
        var configManager = JSonConfigManager.Instance;


        if (SceneChanger.team == 1)
        {
            configManager.OpenConfigFile(JSonConfigManager.ConfigFilePathA);
        }
        if (SceneChanger.team == 2)
        {
            configManager.OpenConfigFile(JSonConfigManager.ConfigFilePathB);
        }


        tempoInput.text = configManager.getTempoTimer();
        Debug.Log("TIMER: " + configManager.getTempoTimer());

        tempo = int.Parse((tempoInput.text == "" ? "10" : tempoInput.text));

        isPaused = true;
        if (startStopText)
        {
            startStopText.text = "Timer start";
        }
        StartTimer();

        fade = GameObject.Find("Finale").GetComponent <FinalFade>();
    }
Exemple #2
0
    void Start()
    {
        if (SceneChanger.scene == 3)
        {
            part = GetComponent <ParticleSystem>();
            if (part.isPaused == false || part.isStopped == false)
            {
                part.Stop();
            }
            collisionEvents = new List <ParticleCollisionEvent>();
            particleDeath   = GetComponent <AudioSource>();

            fade = GameObject.Find("Finale").GetComponent <FinalFade>();
        }
    }