private void Start()
    {
        _status = FindObjectOfType <PlayingStatus>();
        _status.SetPlaying(true);

        this.UpdateAsObservable()
        .Where(_ => Input.GetKeyDown(KeyCode.P))
        .Subscribe(_ =>
        {
            GameManager.Instance.SceneTransition.Load("Intro", () => Time.timeScale = 1);
        });
    }
예제 #2
0
 public async void GameStart()
 {
     _status.SetPlaying(true);
     onStart.Invoke();
 }