19 lines
442 B
C#
19 lines
442 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
namespace BITKit
|
||
|
{
|
||
|
[System.Serializable]
|
||
|
public class GetNameFromGameobject : IReference, INameProvider
|
||
|
{
|
||
|
public GameObject gameobject;
|
||
|
public string Get()
|
||
|
{
|
||
|
return gameobject.name;
|
||
|
}
|
||
|
public string GetName(object obj, params object[] extensions)
|
||
|
{
|
||
|
return Get();
|
||
|
}
|
||
|
}
|
||
|
}
|