コード例 #1
0
        public double supplyFNResourceFixed(double supply, String resourcename)
        {
            ORSResourceManager manager = getManagerForVessel(resourcename);

            if (manager == null)
            {
                return(0);
            }

            return(manager.powerSupplyFixed(this, Math.Max(supply, 0)));
        }
コード例 #2
0
        public double supplyFNResourceFixed(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.powerSupplyFixed(this, Math.Max(supply, 0)));
        }