Example #1
0
 void OnDestroy()
 {
     if (_voice == this)
     {
         destroySpeech();
         _voice = null;
     }
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     if (_voice == null)
     {
         _voice = this;
         DontDestroyOnLoad(gameObject);
         initSpeech();
     }
 }