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); }); }
public async void GameStart() { _status.SetPlaying(true); onStart.Invoke(); }