Example #1
0
        public void Update()
        {
            if (cpu == null)
            {
                return;
            }

            if (part.State == PartStates.DEAD)
            {
                cpu.Mode = CPUMode.OFF;
                return;
            }

            cpu.Update(Time.deltaTime);

            RequiredPower = cpu.SelectedVolume.RequiredPower();
            cpu.ProcessElectricity(part, TimeWarp.fixedDeltaTime);

            UpdateParts();
        }