private void OnEnable() { _component = (ComponentTweenSequence)serializedObject.targetObject; _simulate = new ComponentTweenSimulate(_component, this); _playOnAwake = serializedObject.FindProperty("_playOnAwake"); _id = serializedObject.FindProperty("_id"); _totalTime = serializedObject.FindProperty("_totalTime"); _isIgnoreTimeScale = serializedObject.FindProperty("_isIgnoreTimeScale"); _loopType = serializedObject.FindProperty("_loopType"); _params = serializedObject.FindProperty("_params"); _targets = serializedObject.FindProperty("_targets"); _tweenData = serializedObject.FindProperty("_tweenData"); _editIndex = -1; if (_params.arraySize > 0) { _editIndex = 0; } _moduleTypes = AppDomain.CurrentDomain.GetAssemblies() .SelectMany(a => a.GetTypes()) .Where(t => t.IsSubclassOf(typeof(ModuleAbstract)) && !t.IsAbstract) .ToArray(); }
internal static void Add(ComponentTweenSequence tween) { if (_activeSequences.Contains(tween)) { return; } _activeSequences.Add(tween); }
internal static void Remove(ComponentTweenSequence tween) { if (!_activeSequences.Contains(tween)) { return; } _activeSequences.Remove(tween); }
public ComponentTweenSimulate(ComponentTweenSequence target, Editor editor) { _target = target; _editor = editor; }