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>(); }
private void Awake() { singleton = this; ActivateDrag(); }