private void FadeFinished(CanvasFade arg1, bool arg2)
 {
     if (!arg2)
     {
         SceneManager.LoadScene(sceneToLoad);
     }
 }
示例#2
0
 private void OnEnable()
 {
     if (flag)
     {
         StartCoroutine(CanvasFade.FadeCanvas(canvasGroup, 0f, 1f, 1f));
     }
 }
示例#3
0
 private void Start()
 {
     canvasGroup = this.gameObject.GetComponent <CanvasGroup>();
     exitAr.onClick.AddListener(ExitAR);
     StartCoroutine(CanvasFade.FadeCanvas(canvasGroup, 0f, 1f, 1f));
     flag = true;
 }
 private void Fade_OnFadeEnd(CanvasFade arg1, bool arg2)
 {
     if (arg2)
     {
         fade.FadeOut();
     }
     else
     {
         SceneManager.LoadScene("Menu");
     }
 }
示例#5
0
 private void FadeEnd(CanvasFade arg1, bool isFadeIn)
 {
     if (isFadeIn)
     {
         cutsceneManager.Begin();
     }
     else
     {
         SceneManager.LoadScene(nextScene);
     }
 }
示例#6
0
 void ExitAR()
 {
     button1.SetActive(false);
     button2.SetActive(false);
     button3.SetActive(false);
     button4.SetActive(false);
     button5.SetActive(false);
     arCamera.SetActive(true);
     StartCoroutine(CanvasFade.FadeCanvas(canvasGroup, 1f, 0f, 1f));
     Invoke("CanvasOff", 1);
 }
示例#7
0
    public void Click()
    {
        if (BattleId <= PlayerInfo.CurrentBattle)
        {
            GameData.BattleToLoad = BattleId;

            GameObject canvasObject = GameObject.Find("BlackCanvas");

            CanvasFade canvasFade = canvasObject.GetComponent <CanvasFade>();

            canvasFade.StartFadeIn(LoadBattleScene);
        }
    }
示例#8
0
 private void ChangeScene(CanvasFade obj, bool fadeIn)
 {
     SceneManager.LoadScene(nextScene);
 }
示例#9
0
 private void Start()
 {
     canvasFade = GetComponent <CanvasFade>();
     GetComponent <CanvasGroup>().alpha = 0f;
 }