mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交GAS 打算做一个帧同步的GAS
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
|
||||
namespace GAS.Runtime
|
||||
{
|
||||
public class AttributeChangedEventArgs : EventArgs
|
||||
{
|
||||
public AttributeChangedEventArgs(AbilitySystemComponent owner, AttributeBase attribute, float oldValue,
|
||||
float newValue)
|
||||
{
|
||||
Owner = owner;
|
||||
Attribute = attribute;
|
||||
OldValue = oldValue;
|
||||
NewValue = newValue;
|
||||
}
|
||||
|
||||
public AbilitySystemComponent Owner { get; }
|
||||
public AttributeBase Attribute { get; }
|
||||
public float OldValue { get; }
|
||||
public float NewValue { get; }
|
||||
}
|
||||
|
||||
public class AttributeChangedEvent:EventBase<AttributeChangedEventArgs>
|
||||
{
|
||||
public void Publish(AbilitySystemComponent owner, AttributeBase attribute, float oldValue, float newValue)
|
||||
{
|
||||
Publish(new AttributeChangedEventArgs(owner, attribute, oldValue, newValue));
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 79c1fb618c4d44279376853983ff9f8f
|
||||
timeCreated: 1712759099
|
Reference in New Issue
Block a user