hi i am new in unity so this my code :
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
var pos = transform.position;
pos.x += 1;
transform.position = pos;
string ss = "hellow";
if(pos>100){
print (ss);
}
}
}
but give me this error in if condition line :cannot implicitly convert type int' to unityengine.vector3'