Beispiel #1
0
 public void OnPointerClick(PointerEventData eventData)
 {
     _tween.start = _tween.target.position;
     _tween.end   = new Vector3(
         Random.Range(_boundsMin.x, _boundsMax.x),
         Random.Range(_boundsMin.y, _boundsMax.y),
         Random.Range(_boundsMin.z, _boundsMax.z)
         );
     _tween.Replay();
 }