private void Start() { _changeBar = FindObjectOfType <ChangeBar>(); productionSlider.value = _changeBar.productionVal / 100; suspicionSlider.value = _changeBar.suspicionVal / 100; _scene2Controller = FindObjectOfType <Scene2Controller>().GetComponent <Scene2Controller>(); animator = MC.GetComponent <Animator>(); }
private void Awake() { _instance = this; endCanvas.planeDistance = 0; nextCanvas.planeDistance = 0; UICanvas.planeDistance = 1; UpdateLevel(); UpdateScore(0); if (LevelData.Instance != null && LevelData.Instance.StartScene) { InitStartData(); } else { InitScene2Data(); } }