using System;
using UnityEngine;

namespace Assets.Source.Patterns.ScriptableObjects
{
    public class FloatVariable : ScriptableObject, ISerializationCallbackReceiver
    {
        public float InitialValue;

        [NonSerialized] public float RuntimeValue;

        public void OnBeforeSerialize()
        {
        }

        public void OnAfterDeserialize()
        {
            RuntimeValue = InitialValue;
        }
    }
}
