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>(); }
// Start is called before the first frame update void Start() { health = GetComponent <Health>(); castleFightData = FindObjectOfType <CastleFightData>(); }