private void Awake() { TSSBehaviour.OnItemAwake(this); TSSItemBase.InitValues(ref values); TSSItemBase.DoAllEffects(this, 0); UpdateState(ItemState.closed); }
public override void OnInspectorGUI() { profile = (TSSProfile)target; serializedProfile = new SerializedObject(profile); serializedProfile.Update(); evulate = EditorGUILayout.Slider(evulate, 0, 1); TSSTweenEditor.DrawTweensPanel(profile.tweens, profile, foldOutTweens, profile.values); DrawItemsPanel(TSSBehaviour.GetItems().Where(i => i.profile == profile).OrderBy(i => i.name).ToArray()); DrawValuesPanel(); EditorGUILayout.Space(); serializedObject.ApplyModifiedProperties(); }
private void OnDisable() { TSSBehaviour.RemoveCore(this); }
private void OnEnable() { TSSBehaviour.AddCore(this); }
private void OnDestroy() { TSSBehaviour.OnItemDestroy(this); }