private void Start()
        {
            DragHandler dragHandler = DragHandler.singleton;

            dragHandler.onSelectedObject.AddListener(SetTarget);
            dragHandler.onUnselectedObject.AddListener(TargetUnselected);
            dragHandler.onDragStarted.AddListener(Disactivate);
            dragHandler.onDragEnded.AddListener(Activate);
            Disactivate();
            follower = GetComponent <PositionFollower>();
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     singleton = this;
     ActivateDrag();
 }