Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

umm/animator_accessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What?

  • this.Animator() で参照出来る擬似的なアクセサを提供します

Why?

  • 毎回アクセサを書くのがシンドイので

Install

$ npm install github:umm/animator_accessor.git

Usage

using UnityEngine;
using AccessorUtility;

public class Hoge : MonoBehaviour, IAnimatorAccessor {

    public void Start() {
        this.Animator().SetTrigger("Fuga");
    }

}
  1. AccessorUtility.IAnimatorAccessor を実装します
  2. 拡張メソッドとして Animator() が提供されます

License

Copyright (c) 2017 Tetsuya Mori

Released under the MIT license, see LICENSE.txt

About

Provide accessor for Animator

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages