Пример #1
0
 public void Start()
 {
     ending = GetComponent<Ending>();
     techcontrol = GetComponent<TechControl>();
     confirmPanel.SetActive(false);
     Fill.fillAmount = Mathf.Min(percent, 1);
     DisplayGrowth.text = "Fervour: ";
     GrowthWithTime = 30f;
     flameTint = flames.color;
     Growth = 1f/600f;
 }
Пример #2
0
 void Start()
 {
     techControl = GetComponent<TechControl>();
     tips = GetComponent<Tips>();
     int screenLength = screens.Length;
     distance = new float[screenLength];
     screenDistance = (int)Mathf.Abs(screens[1].GetComponent<RectTransform>().anchoredPosition.x - screens[0].GetComponent<RectTransform>().anchoredPosition.x);
     thresholdDistance = (screens[1].transform.position.x - screens[0].transform.position.x) * 0.9f;
     Vector2 newPosition = new Vector2 (-1534, panel.anchoredPosition.y);
     frameStart = frame.anchoredPosition;
     panel.anchoredPosition = newPosition;
     PausePanel.SetActive(false);
     minScreenNum = 1;
     MovingToMap = false;
 }
Пример #3
0
 void Awake()
 {
     instance = this;
     maxSupport = 0;
     maxBacking = 0;
     maxPowerBoost = 0;
     maxPowerConversion = 0;
     maxPowerIncrement = 0;
     maxFervour = 0;
 }