It´s my first project and I can´t test it cos a few error:
1# Assets/Scripts/FirstPerson.cs(28,1): error CS8025: Parsing error
2# Assets/Scripts/FirstPerson.cs(14,9): error CS1519: Unexpected symbol `{’ in class,
struct, or interface member declaration
3# Assets/Palace of Orinthalian/Standard Assets/Character Controllers/Sources/Scripts
/ThirdPersonController.js(193,54): UCW0003: WARNING: Bitwise operation ‘|’ on boolean
values won’t shortcut. Did you mean ‘||’?
Script:
-
//using UnityEngine;
//using System.Collections;public class FürstPerson : MonoBehaviour
{
public float movementSpeed = 5.0f;
// Use this for initialization
void Start()
{}
{
// Update is called once per frame
void Update ()
{float forwardSpeed = Input.GetAxis ("Vertical") * movementSpeed; float sideSpeed = Input.GetAxis ("Horizontal") * movementSpeed; Vector3 speed = new Vector3 (sideSpeed, 0, forwardSpeed); CharakterController = cc .GetComponent<CharacterController>(); cc.SimpleMove ( speed ) ;
-
}
If you got a Answer please don´t blame me for mistakes or bad english