コード例 #1
0
 private void Start()
 {
     smAnimator = GetComponent <StopMotionAnimator>();
     if (Headless && Alone)
     {
         Play(true);
     }
 }
コード例 #2
0
 public virtual void Execute(StopMotionAnimator animator, bool resetAnimation)
 {
     animator.Play(m_targetSequencer, resetAnimation);
 }
コード例 #3
0
 public virtual bool CanTrigger(StopMotionAnimator animator, string trigger)
 {
     m_targetSequencer = animator.GetSequenceByName(m_Target);
     //Debug.Log(string.Format("{0} {1} {2} {3} {4} {5} {6}", IsTriggerDriven, trigger, m_Trigger, FromAnyState, animator.ActiveName, transitionSource, m_targetSequencer));
     return(IsTriggerDriven && trigger == m_Trigger && (FromAnyState || animator.ActiveName == transitionSource) && m_targetSequencer != null);
 }
コード例 #4
0
    public bool CanExecute(StopMotionAnimator animator)
    {
        m_targetSequencer = animator.GetSequenceByName(m_Target);

        return(m_targetSequencer != null && (FromAnyState && !animator.HasActiveAnimtion || m_Source == animator.ActiveName) && !IsTriggerDriven);
    }