Code : Tout sélectionner
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour {
// UTransformse this for initialization
var plan : Transform;
function Update () {
if(Input.GetMouseButtonDown(0))
transform.RotateAround(plan.position, Vector3.forward, 30);
}
}
Assets/NewBehaviourScript.cs(8,11): error CS1519: Unexpected symbol `:' in class, struct, or interface member declaration
Assets/NewBehaviourScript.cs(8,22): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration
Merci à vous,
A+