Wraps the plain old class object of type TWrapped in a wrapper component and adds it to the gameObject .
- Template Parameters
-
| TWrapped | The type of the object to wrap and add to the gameObject . |
- Parameters
-
| gameObject | The GameObject to which the object is added. |
| wrapped | The object to wrap add to the gameObject . |
- Returns
- The wrapper that was added to the gameObject and was made to wrap the wrapped object.
- Exceptions
-
| ArgumentNullException | Thrown if this GameObject or the wrapped is null. |