Exemple #1
0
 void Start()
 {
     Physics2D.callbacksOnDisable = true;
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this);
     }
     goldValueText.text = playerMoney.ToString();
     activeUnitsPlayer  = new LinkedList <Health>();
     activeUnitsEnemy   = new LinkedList <Health>();
 }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     health          = GetComponent <Health>();
     castleFightData = FindObjectOfType <CastleFightData>();
 }