void AnimatePlugTowardsUs(CustomObject customObject) { Tweener tweener = customObject.GetComponent <Tweener>(); if (tweener != null) { tweener.ReachTargetInstantly(); } else { tweener = customObject.gameObject.AddComponent <Tweener>(); } tweener.Animate( position: Vector3.zero, rotation: Vector3.zero, seconds: 0.1f, tweenType: TweenType.EaseInOut ); }