Example #1
0
        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);
                }
            }
        }
Example #2
0
        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);
                }
            }
        }