Esempio n. 1
0
 /// <summary>Registers state being entered as current.</summary>
 public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
                 #if LOG_VERBOSE
     Log.Write("AppAnimCtrlMemoryBehaviour.OnStateEnter : name = " + animator.name + ", state = " + Namehash.DBGet(stateInfo.fullPathHash));
                 #endif
     if (memory == null)
     {
         memory = animator.GetComponent <AnimCtrlMemoryComponent>();
     }
     Assert.IsNotNull(memory);
     Assert.IsFalse(memory.Is(stateInfo.fullPathHash));
     memory.StateNotifyCurrent(stateInfo.fullPathHash);
 }
 public override string ToString()
 {
     return(Namehash.DBGet(stateFullNamehashCurrent));
 }
Esempio n. 3
0
        public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
        {
#if LOG_VERBOSE
            Log.Write("DEBUGAnimStateBehaviour.OnStateEnter: " + animator.name + ", state: " + Namehash.DBGet(stateInfo.fullPathHash));
                        #endif
        }
 public string ToStringExt()
 {
     return("(" + Namehash.DBGet(stateFullNamehashCurrent) + ",p:" + Namehash.DBGet(stateFullNamehashPrevious) + ")");
 }