Пример #1
0
    private void Awake()
    {
        if (Instance != null)
        {
            Destroy(gameObject);
        }

        Instance = this;
    }
Пример #2
0
    public void PlayTypeWriterSound()
    {
        AudioClipsManager aManager = FindObjectOfType <AudioClipsManager>();

        aManager.PlayTypeWriterSound();
    }
Пример #3
0
 private void OnDestroy()
 {
     Instance = null;
 }