i dont know anything about C# im getting this error error CS1519: Unexpected symbol `:' in class, struct, or interface member declaration
this is where the error is static public AUTO: bool True;
using UnityEngine;
using System.Collections;
public class AutoAI : MonoBehaviour {
public float speed = 20;
public float rotatespeed = 10;
public float dis = 1;
public float LeftRight = 2;
public float infront = 1;
private int direction = 1;
static public AUTO: bool True;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(AUTO){
if(!Physics.Raycast(transform.position, transform.forward, infront)){
transform.Translate(Vector3.forward * speed * Time.smoothDeltaTime);
}
else{
if(!Physics.Raycast(transform.position, -transform.right, LeftRight)){
direction = 1;
}
else if(!Physics.Raycast(transform.position, transform.right, LeftRight)){
direction = -1;
}
transform.Rotate(Vector3.up, 60 * rotatespeed * Time.smoothDeltaTime * direction);
}
}
}
}