public ClipEvent Clone() { var ret = new ClipEvent(); ret.name = this.name; ret.param = this.param; ret.trigger = trigger; ret.rate = rate; return(ret); }
//执行动画事件 private void UF_ExcutePerformActionClipEvent(PerformPlayNode perform, ClipEvent clipEvent) { if (clipEvent.rate > 0) { //根据概率设定是否触发 if (Random.Range(1, 10000) > clipEvent.rate) { return; } } MessageSystem.UF_GetInstance().UF_Send(DefineEvent.E_PERFORM_ACTION_CLIP, perform.uid, perform.pValue, perform.param, clipEvent.name, clipEvent.param); }