I’m currently trying to replace some animations I was never that happy with (built in Unity) with iTweens… I want to take the gameObject’s transform.position and change it a bit, and then save that as a new transform.
But I keep running into “error CS0119: Expression denotes a variable', where a
method group’ was expected”
It hits on line 23 in my code, which is completely blank, so I suspect it means where DrawerOutPos.position = tempvect();
Anyway… here’s my code:
void Start () {
DrawerInPos = gameObject.transform;
Vector3 tempvect = new Vector3();
tempvect.x = gameObject.transform.position.x;
tempvect.y = gameObject.transform.position.y+0.4f;
tempvect.z = gameObject.transform.position.z;
DrawerOutPos.position = tempvect();
}