24 lines
439 B
C#
24 lines
439 B
C#
using LuckerGame.UI;
|
|
using Sandbox;
|
|
|
|
public class HoveringTextCreator : Entity
|
|
{
|
|
private string Text { get; set; }
|
|
private Entity TargetEntity { get; set; }
|
|
|
|
public HoveringTextCreator()
|
|
{
|
|
|
|
}
|
|
public HoveringTextCreator(string text, Entity targetEntity)
|
|
{
|
|
Text = text;
|
|
TargetEntity = targetEntity;
|
|
}
|
|
public override void ClientSpawn()
|
|
{
|
|
base.ClientSpawn();
|
|
var hoveringText = new HoveringText(Text, TargetEntity);
|
|
}
|
|
}
|