Target#
Can Read
Cannot Write
Description#
The Target game object the calling object targets
Code#
using System;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Get]
[Title("Target")]
[Category("Target")]
[Description("The Target game object the calling object targets")]
[Image(typeof(IconTarget), ColorTheme.Type.Yellow)]
[Keywords("Target")]
[Serializable]
public class TypeVariableTarget : TypeVariable
{
public override Variable Get(Args args)
{
return args.TargetComponent<LocalVariable>();
}
public override string ToString()
{
return "Target";
}
}
}