public bool Contains(IXTween tween) { if (tween == null) { return(false); } if (_a == tween) { return(true); } if (_b == tween) { return(true); } if (_c == tween) { return(true); } if (_d == tween) { return(true); } if (_targets != null) { return(System.Array.IndexOf <IIXTween>(_targets, tween as IIXTween) != -1); } return(false); }
public int GetTweenIndex(IXTween tween) { if (tween == null) { return(-1); } if (_a == tween) { return(0); } if (_b == tween) { return(1); } if (_c == tween) { return(2); } if (_d == tween) { return(3); } if (_targets != null) { int i = System.Array.IndexOf <IIXTween>(_targets, tween as IIXTween); if (i != -1) { return(i + 4); } } return(-1); }