private void Start() { smAnimator = GetComponent <StopMotionAnimator>(); if (Headless && Alone) { Play(true); } }
public virtual void Execute(StopMotionAnimator animator, bool resetAnimation) { animator.Play(m_targetSequencer, resetAnimation); }
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); }
public bool CanExecute(StopMotionAnimator animator) { m_targetSequencer = animator.GetSequenceByName(m_Target); return(m_targetSequencer != null && (FromAnyState && !animator.HasActiveAnimtion || m_Source == animator.ActiveName) && !IsTriggerDriven); }