Exemplo n.º 1
0
        public double supplyManagedFNResourceFixed(double supply, String resourcename)
        {
            ORSResourceManager manager = getManagerForVessel(resourcename, vessel);

            if (manager == null)
            {
                UnityEngine.Debug.LogWarning("ORS - did not find manager for vessel");
                return(0);
            }

            return(manager.managedPowerSupplyFixed(this, Math.Max(supply, 0)));
        }