Пример #1
0
 /// <summary>
 /// Init class method.
 /// </summary>
 private void Init()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Пример #2
0
 private void Awake()
 {
     Instance = this;
 }