カラスの目はよく見るとかわいい

技術系ブログ。Unity、GoogleAppsScript、C#、VisualStudioCodeを中心に投稿しています。

UniRxでCannot convert lambda expression to type 'IObserver<float>'と言われる時の対処法

UniRxでCannot convert lambda expression to type 'IObserver'と言われる時の対処法

usingする

using UniRx;を入れる

    private Text m_Text;

    private void Awake()
    {
               m_Text = GetComponent<Text>();

	       GameController.Instance.Time.Subscribe(x=>TimeChanged(x));
    }

みたいな感じでやる時、GameControllerでusingはされてて、Subscribe自体にエラーがで出ないので、
最初なんでエラーが出てるのかわからなかった