I am getting a stacked overflow operation error . To be precise:
StackOverflowException: The requested operation caused a stack overflow.
Helper.CameraMountPoint.get_xForm()(at Assets/Scripts/System/Helper.cs:102)
The script from Helper :
#region CameraMountPoint
public struct CameraMountPoint
{
private Vector3 position;
private Transform XForm;
public Vector3 Position {
get { return Position ; }
set { Position = value; }
}
public Transform xForm
{
get { return xForm ; }
set { XForm = value; }
}
public void Init(string camName, Vector3 pos, Transform transform, Transform parent)
{
position = pos;
xForm = transform;
xForm.name = camName;
xForm.parent = parent;
xForm.localPosition = position;
}