mais je pense qu'il y a un probleme de compatibilité avec la version 5
Code : Tout sélectionner
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TextP : MonoBehaviour {
private CodeP MainCode;
void Awake () {
MainCode = GetComponent<Codep>();
}
void Start () {
Debug.Log(CodeP.C);
}
}