示例#1
0
 // 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)
 {
     pSysteme = animator.GetComponent <PorteSystem>();
     //pSysteme.OpenDoor();
 }
示例#2
0
 private void Start()
 {
     instance = this;
     mesh     = gameObject.GetComponent <MeshRenderer>();
     animator = GetComponent <Animator>();
 }