@umm/animator_accessor
v1.0.5
Published
Provide accessor for Animator
Downloads
4
Keywords
Readme
What?
this.Animator()
で参照出来る擬似的なアクセサを提供します
Why?
- 毎回アクセサを書くのがシンドイので
Install
$ npm install github:umm-projects/animator_accessor.git
Usage
using UnityEngine;
using AccessorUtility;
public class Hoge : MonoBehaviour, IAnimatorAccessor {
public void Start() {
this.Animator().SetTrigger("Fuga");
}
}
- AccessorUtility.IAnimatorAccessor を実装します
- 拡張メソッドとして Animator() が提供されます
License
Copyright (c) 2017 Tetsuya Mori
Released under the MIT license, see LICENSE.txt