- Extension methods of
IObservable<T>
for SimpleAnimation
- Unity 2018.1
- .NET 4.x / C# 6.0
yarn add "umm/unirx_simpleanimation_extensions#^1.0.0"
GetComponent<SimpleAnimation>()
.OnPlayAsObservable("ClipName")
.Subscribe(_ => Debug.Log("ClipName played!"));
GetComponent<SimpleAnimation>()
.OnStopAsObservable("ClipName")
.Subscribe(_ => Debug.Log("ClipName stopped!"));
GetComponent<SimpleAnimation>()
.PlayAsObservable("ClipName")
.Subscribe(_ => Debug.Log("ClipName played!"));
Copyright (c) 2018 Tetsuya Mori
Released under the MIT license, see LICENSE.txt