private void RepairRobots() { for (int i = 0; i < crewmembers.Count; i++) { Crewmember crewmember = crewmembers[i].GetComponent <Crewmember>(); if (crewmember.IsMachine) { crewmember.Heal(robotics.powerConsumption * robotics.repairRatio * Time.deltaTime); } } }
private void HealCrewmembers() { for (int i = 0; i < crewmembers.Count; i++) { Crewmember crewmember = crewmembers[i].GetComponent <Crewmember>(); if (!crewmember.IsMachine) { crewmember.Heal(medbay.powerConsumption * medbay.healRatio * Time.deltaTime); } } }