private void IncrementBuilding() { if (currentTarget == townCenterLoc) { //Debug.Log("INcrement On" + savedTarget.gameObject); Rodent r = this.GetComponent <Rodent>(); // no null check cuz would never happen savedTarget.GetComponent <BuildableObject>().IncrementConstruction(r.getBuildRate()); } }