コード例 #1
0
        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>();
        }
コード例 #2
0
 private void Awake()
 {
     singleton = this;
     ActivateDrag();
 }