public static void StopTween(GameObject reference, Tween.StopAction stopAction) { foreach (KeyValuePair <string, Tween> tween in tweens) { if (tween.Value.CurrentConfig.GameObject == reference) { tween.Value.Stop(stopAction); } } }
public static void StopTween(string id, Tween.StopAction stopAction) { foreach (KeyValuePair <string, Tween> tween in tweens) { if (tween.Value.CurrentConfig.Id == id) { tween.Value.Stop(stopAction); } } }