I have an error with my code, its Assets/Scripts/Player Script.cs(4,26); error CS8025; Parsing error.
my code
using UnityEngine; using System.Collections;
public class Player Script : MonoBehaviour {
public float moveSpeed = 5.0f;
public int life = 100;
public int maxLife = 100;
public float rotateSpeed = 50;
public Transform world;
// public PanningBackground back;
public int damage = 10;
// Update is called once per frame
void Update () {
Vector3 mVec = new Vector3(0, 0, -Input.GetAxis("Vertical"));
float rot = Input.GetAxis("Horizontal");
//print ((Vector3.up) * rot * rotateSpeed);
transform.Rotate(Vector3.up * (rot * rotateSpeed * Time.deltaTime));
transform.Translate(mVec * moveSpeed * Time.deltaTime);
mVec = transform.TransformDirection(mVec);
// bacs.currentPan += new Vector2(mVec.x,mVec.z) * Time.deltaTime;
world.Translate(mVec * moveSpeed * Time.deltaTime);
}
}
It doesn't make much sense to me why the parsing error is occurring but