void Awake() { if (Instance == null) { Instance = this; } else { Destroy(gameObject); } }
void Start() { m_loverMgr = LoverManager.Instance; /// <summary> /// ゲームタイマーを終了する処理 /// (フェードアウト2秒+カウントダウン3秒追加) /// </summary> Observable.Timer(TimeSpan.FromSeconds ((double)getGameTime + 6)).Subscribe(_ => { m_InGame = false; m_loverMgr.AllStop(); }).AddTo(this); }