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