private void Play(AnimBox anim_box) { if (playAbleController.CurrentAnimBox == anim_box) { return; } playAbleController.TransAnimation(anim_box); }
private void FlowResponce(AnimBox anim_box) { if (anim_box is AttackBox) { Observable.Timer(TimeSpan.FromSeconds(anim_box.delayTime)) .Subscribe(_ => responseStream.OnNext(AnimResponce.AttackEnd)); } }
public void ChangeAnim(AnimBox anim_box) { if (current == anim_box) { return; } playAbleController.TransAnimation(anim_box); current = anim_box; }
private void FlowResponce(AnimBox anim_box) { AnimResponce?a = null; var name = anim_box.clip.name; if (name == MyDic.SmallDamage || name == MyDic.BigDamage) { a = AnimResponce.Damaged; } if (name == MyDic.JumpStartName) { a = AnimResponce.JumpLaunch; } if (a != null) { responseStream.OnNext((AnimResponce)a); } }
public void ForceChangeAnim(AnimBox anim_box) { playAbleController.TransAnimation(anim_box); }
public void ChangeAnim(AnimBox anim_box) { Play(anim_box); }
public void CashClear() { current = null; }