public WaitForAnimation(CSpineController pController) { _pController = pController; if (_pController.p_bIsPlaying) { _bWaitForAnimation = true; _strAnimation_Started = _pController.p_strCurrentAnimationName; _pController.p_pAnimation.state.Interrupt += State_Interrupt; _pController.p_pAnimation.state.Complete += State_Complete; _fTimeFinish = Time.time + _pController.p_fAnimationStartTime + Time.deltaTime; } else { _bWaitForAnimation = false; } }
public WaitForAnimationAll(CSpineController pController) { _pController = pController; }