/// <summary>set Debuginfo from given unit</summary> /// <param name="unit">lolsbarry</param> public void setFromUnit(GameObject unit) { if (i.setScriptsFrom(unit)) { initialLives = i.getInitialLives(); currentLives = i.getLives(); defaultDammage = i.getDamage(); attackTag = i.getAttackTag(); range = i.getRange(); unitType = i.getScriptType(); //needAction=i.getNeedAction(); } }