private void FadeFinished(CanvasFade arg1, bool arg2) { if (!arg2) { SceneManager.LoadScene(sceneToLoad); } }
private void OnEnable() { if (flag) { StartCoroutine(CanvasFade.FadeCanvas(canvasGroup, 0f, 1f, 1f)); } }
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"); } }
private void FadeEnd(CanvasFade arg1, bool isFadeIn) { if (isFadeIn) { cutsceneManager.Begin(); } else { SceneManager.LoadScene(nextScene); } }
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); }
public void Click() { if (BattleId <= PlayerInfo.CurrentBattle) { GameData.BattleToLoad = BattleId; GameObject canvasObject = GameObject.Find("BlackCanvas"); CanvasFade canvasFade = canvasObject.GetComponent <CanvasFade>(); canvasFade.StartFadeIn(LoadBattleScene); } }
private void ChangeScene(CanvasFade obj, bool fadeIn) { SceneManager.LoadScene(nextScene); }
private void Start() { canvasFade = GetComponent <CanvasFade>(); GetComponent <CanvasGroup>().alpha = 0f; }