mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-12 22:44:35 +01:00
20 lines
425 B
C#
20 lines
425 B
C#
using BehaviorDesigner.Runtime;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class SharedEntity : SharedVariable<BaseMonoEntity>
|
|
{
|
|
public override string ToString()
|
|
{
|
|
return (!(mValue != null)) ? "<null entity>" : mValue.gameObject.name;
|
|
}
|
|
|
|
public static implicit operator SharedEntity(BaseMonoEntity value)
|
|
{
|
|
SharedEntity sharedEntity = new SharedEntity();
|
|
sharedEntity.mValue = value;
|
|
return sharedEntity;
|
|
}
|
|
}
|
|
}
|