Пример #1
0
 private void Awake()
 {
     TSSBehaviour.OnItemAwake(this);
     TSSItemBase.InitValues(ref values);
     TSSItemBase.DoAllEffects(this, 0);
     UpdateState(ItemState.closed);
 }
Пример #2
0
        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();
        }
Пример #3
0
 private void OnDisable()
 {
     TSSBehaviour.RemoveCore(this);
 }
Пример #4
0
 private void OnEnable()
 {
     TSSBehaviour.AddCore(this);
 }
Пример #5
0
 private void OnDestroy()
 {
     TSSBehaviour.OnItemDestroy(this);
 }