A game about forced loneliness, made by TACStudios
1using System;
2
3namespace Unity.VisualScripting
4{
5 public interface IGettable
6 {
7 object GetValue();
8 }
9
10 public static class XGettable
11 {
12 public static object GetValue(this IGettable gettable, Type type)
13 {
14 return ConversionUtility.Convert(gettable.GetValue(), type);
15 }
16
17 public static T GetValue<T>(this IGettable gettable)
18 {
19 return (T)gettable.GetValue(typeof(T));
20 }
21 }
22}