AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
DehydrationDeactivation.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 using UnityEngine;
5 
6 namespace HoloToolkit.Unity.InputModule.Tests
7 {
8  public class DehydrationDeactivation : StateMachineBehaviour
9  {
16  public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
17  {
18  animator.transform.gameObject.SetActive(false);
19  }
20  }
21 }
override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
OnStateExit is called when a transition ends and the state machine finishes evaluating this state ...