Files
MuHua-Core/Assets/ModuleFunction/ModuleSending/SendingPlate.cs
T
2024-11-15 18:28:21 +08:00

18 lines
497 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SendingPlate : ModuleSending<DataPlate> {
private DataPlate dataPlate;
public override DataPlate Current => dataPlate;
public override event Action<DataPlate> OnChange;
public override void Change(DataPlate dataPlate) {
this.dataPlate = dataPlate;
OnChange?.Invoke(dataPlate);
}
protected override void Awake() => ModuleCore.SendingPlate = this;
}