/** * @language zh_CN * 添加 IAnimatable 实例。 * @param value IAnimatable 实例。 * @version DragonBones 3.0 */ public void Add(IAnimateble value) { if (value != null && !_animatebles.Contains(value)) { _animatebles.Add(value); value.clock = this; } }
/** * @language zh_CN * 添加指定的 IAnimatable 实例。 * @param value IAnimatable 实例。 * @version DragonBones 3.0 */ public void Add(IAnimateble value) { if (value != null && !_animatebles.Contains(value)) { value._onAdd(this); _animatebles.Add(value); } }
/** * @language zh_CN * 清除所有的 IAnimatable 实例。 * @version DragonBones 3.0 */ public void Remove(IAnimateble value) { var index = _animatebles.IndexOf(value); if (index >= 0) { _animatebles[index] = null; value.clock = null; } }
/** * @language zh_CN * 移除指定的 IAnimatable 实例。 * @param value IAnimatable 实例。 * @version DragonBones 3.0 */ public void Remove(IAnimateble value) { var index = this._animatebles.IndexOf(value); if (index >= 0) { value._onRemove(); _animatebles[index] = null; } }
/** * 是否包含 IAnimatable 实例 * @param value IAnimatable 实例。 * @version DragonBones 3.0 */ public bool Contains(IAnimateble value) { return(_animatebles.Contains(value)); }