bonjour,

Le debugger Visual Studio me dit qu'il ya plein d'erreurs dans ce code visant à créer une structure simple:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
 
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
 
public class struct_vect : MonoBehaviour {
 
    struct vect
	{
 
		float x;
		float y;
		float z;
 
 
}
 
 
// Use this for initialization
void Start () {
 
		vect trois;
		trois.x = 1;
		trois.y = 4;
                trois.z =7;
 
		print("(" + trois.x + "," + trois.y + "," + trois.z + ")");
 
	}
 
	// Update is called once per frame
	void Update () {
 
	}
}
Je ne vois pas les fautes !
C'est vraiment agaçant !

merci de votre aide