Exemple #1
0
 // Start is called before the first frame update
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     health           = GetComponent <Health>();
     gameScoreManager = WinConditionManager.instance;
 }