示例#1
0
 void OnEnable()
 {
     if (targetable)
     {
         targetable.AddWatcher(this);
     }
 }
示例#2
0
    public void SetTarget(TargetableSystem newTarget)
    {
        if (targetable != null)
        {
            targetable.RemoveWatcher(this);
        }

        targetable = newTarget;

        newTarget.AddWatcher(this);
    }