예제 #1
0
    void PlayAnim()
    {
        _animtor.gameObject.SetActive(true);
        _animtor.Play("quit_game");

        AsynchronousFunc.Delaytime(5.0f, () => SceneManager.LoadScene(0));
    }
예제 #2
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;
    }
예제 #3
0
 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);
     }
 }