示例#1
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
示例#2
0
    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);
    }