Created
May 22, 2017 12:13
-
-
Save tsubaki/8fa3d9b6d2a853735e3bf7aafb031345 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[SharedBetweenAnimators] | |
public class Sample : StateMachineBehaviour { | |
[SerializeField] string tag; | |
private int entryCount = 0; | |
override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) | |
{ | |
entryCount++; | |
Debug.LogFormat ("entry : {0} animator:{1} state:{2}", entryCount, animator.name, tag); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment