public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Competeted, int intParam = 0, string strParam = null, Object objectParam = null) { source.destroy = false; this.start++; if (this.start >= sequence.Count) { this.start = 0; if (repeat > 0) { repeat--; /* 组合动作循环执行的次数 */ } else { this.destroy = true; /* 所有动作执行完毕,组合动作等待销毁 */ this.callback.SSActionEvent(this); /* 向上调用动作管理类的ISSActionCallback类方法,进行结束操作 */ } } }
List <SSAction> actionList = new List <SSAction>(); /* 必须初始化!!!! */ public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Competeted, int intParam = 0, string strParam = null, Object objectParam = null) { source.enable = false; /* 动作完成执行 */ }