void PlayAnim() { _animtor.gameObject.SetActive(true); _animtor.Play("quit_game"); AsynchronousFunc.Delaytime(5.0f, () => SceneManager.LoadScene(0)); }
private void OnTriggerEnter2D(Collider2D other) { InputManager.Instance.InputDetectionActive = active; AsynchronousFunc.Delaytime(10f, EndingStory); var SceneCamera = Camera.main.GetComponent <CameraController>(); SceneCamera.CameraOffset += StaticData.Instance.finishLevelZoneOffset; }
public void OnTriggerEnter2D(Collider2D other) { this.StopAllCoroutines(); for (int i = 0; i < contents.Count; i++) { var content = contents[i].ToUpper(); AsynchronousFunc.Delaytime(i * StaticData.Instance.dialogDeltaTime, () => { HintCtr.Inst.ShowContent(content, transform); }, this); } }