Here's my code:
using UnityEngine;
using System.Collections;
public class ExampleCS : MonoBehaviour {
public GameObject player2;
public Vector3 pos = Vector3(1, 0, 1);
void Update () {
player2.transform.position += pos;
}
}
And Here's my error:
Assets/Scripts/ExampleCS.cs(6,30): error CS0119: Expression denotes a `type', where a variable, value or method group was expected
please help me!