/// <summary> /// Constructor accepts readonly dependencies. /// </summary> /// <param name="owner">The object to manipulate.</param> /// <param name="prefab">The visualization prefab to instantiate.</param> /// <param name="del">The manipulation ended callback.</param> public PinManipulator(Transform owner, GameObject prefab, ManipulationEndedDelegate del) { this.owner = owner; prefabFeelerRay = prefab; manipulationEnded = del; SetupFeelerRays(); }
/// <summary> /// Constructor accepts readonly dependencies. /// </summary> /// <param name="owner">The object to manipulate.</param> /// <param name="prefab">The visualization prefab to instantiate.</param> /// <param name="started">The manipulation started callback.</param> /// <param name="ended">The manipulation ended callback.</param> public PinManipulator(Transform owner, GameObject prefab, ManipulationStartedDelegate started, ManipulationEndedDelegate ended) { this.owner = owner; prefabFeelerRay = prefab; manipulationStarted = started; manipulationEnded = ended; SetupFeelerRays(); }
/// <summary> /// Backward compat with no specified manipulation started callback. /// </summary> /// <param name="owner">The object to manipulate.</param> /// <param name="prefab">The visualization prefab to instantiate.</param> /// <param name="ended">The manipulation ended callback.</param> public PinManipulator(Transform ownder, GameObject prefab, ManipulationEndedDelegate ended) : this(ownder, prefab, null, ended) { }