Пример #1
0
    public void Close()
    {
        GameObject OpenSound = Instantiate(CloseSfxPrefab, transform.position, new Quaternion());
        Sfx        Sfx       = OpenSound.GetComponent <Sfx>();

        Sfx.InitializeIndex(PreviousOpenIndex);
    }
Пример #2
0
    public void Open()
    {
        GameObject OpenSound = Instantiate(OpenSfxPrefab, transform.position, new Quaternion());
        Sfx        Sfx       = OpenSound.GetComponent <Sfx>();

        Sfx.InitializeIndex(-1);
    }