35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
// 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
|
|
{
|
|
/// <summary> Reaction progress value </summary>
|
|
Progress,
|
|
/// <summary> Progressor current value </summary>
|
|
Value
|
|
}
|
|
|
|
[SerializeField] private Mode TargetMode = Mode.Value;
|
|
public Mode targetMode
|
|
{
|
|
get => TargetMode;
|
|
set => TargetMode = value;
|
|
}
|
|
|
|
/// <summary> Method triggered when the progress value changes </summary>
|
|
/// <param name="progressor"> The Progressor that triggered this update </param>
|
|
public abstract void UpdateTarget(Progressor progressor);
|
|
|
|
/// <summary> Method triggered when the progress value changes </summary>
|
|
/// <param name="progressorGroup"> The ProgressorGroup that triggered this update </param>
|
|
public abstract void UpdateTarget(ProgressorGroup progressorGroup);
|
|
}
|
|
}
|