18 lines
334 B
C#
18 lines
334 B
C#
|
using System;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace RoR2.UI;
|
||
|
|
||
|
public class RectTransformDimensionsChangeEvent : MonoBehaviour
|
||
|
{
|
||
|
public event Action onRectTransformDimensionsChange;
|
||
|
|
||
|
private void OnRectTransformDimensionsChange()
|
||
|
{
|
||
|
if (this.onRectTransformDimensionsChange != null)
|
||
|
{
|
||
|
this.onRectTransformDimensionsChange();
|
||
|
}
|
||
|
}
|
||
|
}
|