// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved. // This code can only be used under the standard Unity Asset Store End User License Agreement // A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms using UnityEngine; namespace Doozy.Runtime.Reactor { public abstract class ProgressTarget : MonoBehaviour { public enum Mode { /// Reaction progress value Progress, /// Progressor current value Value } [SerializeField] private Mode TargetMode = Mode.Value; public Mode targetMode { get => TargetMode; set => TargetMode = value; } /// Method triggered when the progress value changes /// The Progressor that triggered this update public abstract void UpdateTarget(Progressor progressor); /// Method triggered when the progress value changes /// The ProgressorGroup that triggered this update public abstract void UpdateTarget(ProgressorGroup progressorGroup); } }