E_ElecCompetition/Electrical_inspectionCompet.../Assets/Script/SceneData/SceneData.cs

18 lines
472 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SceneData : MonoBehaviour
{
[SerializeField] int OperatingCapacity;//运行容量
[SerializeField] int FixedValue = 295;//固定容量
public int GFData;//光伏板数量=运行容量/固定容量取int值
public int inverterSum = 2;
// Start is called before the first frame update
void Awake()
{
//Global
GFData = OperatingCapacity / FixedValue;
}
}