override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { ClipUtils clipUtils = animator.gameObject.GetComponent <ClipUtils>(); clipUtils.StartFadeInBlush(); clipUtils.StartFadeInHearts(); }
// OnStateExit is called when a transition ends and the state machine finishes evaluating this state override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { ClipUtils clipUtils = animator.gameObject.GetComponent <ClipUtils>(); clipUtils.StartFadeOutSweat(); clipUtils.SetMonsterMode(false); }
override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { ClipUtils clipUtils = animator.gameObject.GetComponent <ClipUtils>(); clipUtils.SetMonsterMode(false); GameObject crowd = GameObject.Find("Crowd"); CrowdSimulator cs = crowd.GetComponent <CrowdSimulator>(); cs.enabled = true; GameObject tableSet = GameObject.Find("TableSetMain"); Rigidbody rb = tableSet.AddComponent <Rigidbody>(); rb.AddForce(new Vector3(-4.0f, 5.0f, 0.0f), ForceMode.Impulse); clipUtils.StartMoveTable(rb); GameObject player = GameObject.Find("Player"); Vector3 pos = player.transform.position; pos.y = 1.077f; clipUtils.StartMovePlayerTowards(player, pos); }
// OnStateEnter is called when a transition starts and the state machine starts to evaluate this state override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { ClipUtils clipUtils = animator.gameObject.GetComponent <ClipUtils>(); clipUtils.Blink(); }
// OnStateExit is called when a transition ends and the state machine finishes evaluating this state override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { ClipUtils clipUtils = animator.gameObject.GetComponent <ClipUtils>(); clipUtils.SetHumanMode(); }
static void SnapToNext() { ClipUtils.SnapToNext(Selection.objects); }
static void SnapToPrevious() { ClipUtils.SnapToPrevious(Selection.objects); }
static void AlignToTail() { ClipUtils.AlignClipsToTail(Selection.objects); }
static void AlignToHead() { ClipUtils.AlignClipsToHead(Selection.objects); }