Пример #1
0
 void Start()
 {
     jsonString = Resources.Load<TextAsset>("Ending").text;
     EndingData = JsonMapper.ToObject<LitJson.JsonData>(jsonString);
     load = GetComponent<Load>();
     calcEnding = GetComponent<CalcEnding>();
     wonGame = false;
     testEndingPanel.SetActive(false);
 }
Пример #2
0
 void Awake()
 {
     instance = this;
     SupportBar.fillAmount = 0;
     SupportFrame.fillAmount = 0;
     OppositionBar.fillAmount = 0;
     OppositionFrame.fillAmount = 0;
     pause = 0.5f;
 }