Example #1
0
 private void OnDestroy()
 {
     if (s_instance == this)
     {
         s_instance         = null;
         s_recognizedCamera = null;
     }
 }
Example #2
0
 private void Awake()
 {
     s_instance         = this;
     s_recognizedCamera = GetComponent <Camera>();
 }