Example #1
0
 private void WrapUpJob(int index)
 {
     FadeUI.FadeScreen(() =>
     {
         levelManager.CleanLevel();
         mainMenuUI.SetWindow(MainMenuUI.WINDOW.JOBS);
         _jobEntryUIElements[index].gameObject.SetActive(false);
     }, null, "Job Finished!");
 }
Example #2
0
 private void LoadLevel(int index)
 {
     FadeUI.FadeScreen(() =>
     {
         levelManager.LoadLevelAtIndex(index);
         mainMenuUI.SetWindow(MainMenuUI.WINDOW.NONE);
     }, () =>
     {
         FindObjectOfType <HandController>().Follow = true;
     }, "En Route!!!");
 }
Example #3
0
    // Start is called before the first frame update
    private void Start()
    {
        transform = gameObject.transform as RectTransform;

        _canvasRect = GetComponentInParent <Canvas>().transform as RectTransform;


        SetupUI();

        SetWindow(WINDOW.NONE);

        FadeUI.FadeScreen(() =>
        {
            SetWindow(WINDOW.MAIN);
        }, null);
    }