protected override void giveLifeToPlant() { if (!isPlanted) { Debug.Log("Live you thing!"); //occupiedBlock = associatedSeed.GetOccupiedBlock(); if (occupiedBlock == null) { Debug.Log("Why don't I have a block yet :<"); } plantID = Structs.id.flower; destroyable = false; currdate = StageManager.dayCount; //spreadTime = 1; if (occupiedBlock != null) { occupiedBlock.content = true; } age = 0; spreadTime = 1; if (isOriginal) { sp = this.gameObject.GetComponent <SpreadingPlant>(); //sp.Spread(true); //Debug.Log("OG spread"); //Flower.currdate = StageManager.dayCount; //spreadTime = 0; } isPlanted = true; } }
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(); }