Пример #1
0
    private void Awake()
    {
        // Make this persistent
        if (GameObject.FindGameObjectsWithTag("Persistent").Length > 1)
        {
            Destroy(gameObject);
            return;
        }
        DontDestroyOnLoad(gameObject);
        Globals.persistend = this;

        var sound_coll = new SoundCollection("sounds");

        SetCursor();
        UpdateOnMenu();

        Volumes.Initialize(Globals.settings.GetChild("sound volume"));
        DeveloppmentTools.Testing();
    }