public override void giveSpreadToPlant() { Debug.Log("Spread boy: " + spreadTime); if (spreadTime > 0 && spreadEnabled) { sp = this.gameObject.GetComponent <SpreadingPlant>(); sp.Spread(); //Debug.Log("Non og spread"); spreadTime = 0; } }
public override void giveSpreadToPlant() { sp = this.gameObject.GetComponent <SpreadingPlant>(); sp.Spread(); }