So I keep getting these errors:
Helper.cs (74,17): error CS1041 : identifier expected
Helper.cs (75,29): error CS1518 : Expected ‘class’, ‘delegate’, 'enum’or ‘struct’
Helper.cs (76,29): error CS8025 : Parsing error
Helper.cs (76,29): error CS1038 : #endregion directive expected
Here’s the script
#region Object Structures
public struct CameraTargetObject
{
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 = Vector3.zero;
xForm.localPosition = position;
}
}
#endregion
#region public struct CameraMountPoint
{
private Vector3 position;
private Transform XForm;
public Vector3 Position;
{
get(return xForm;)
set(xForm = value;)
}
{
get { return position;}
set { Position = value;}
}
public void Init(string camName, Vector3 pos, Transform transform, Transform parent)
{
position = pos;
xForm = transform;
xForm.name = camName;
xForm.parent = parent;
xForm.localPosition = Vector3.zero;
xForm.localPosition = position;
}
}
#endregion
It also says Parser error : set and Transform