Пример #1
0
 private void OnDisable()
 {
     instance = null;
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     instance = this;
 }