예제 #1
0
 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>();
 }
예제 #2
0
    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();
        }
    }