Beispiel #1
0
 private void OnDestroy()
 {
     Instance = null;
 }
Beispiel #2
0
 private void Awake()
 {
     MainCamera = GetComponent <Camera>();
     Instance   = this;
 }