void Start() { float[] array = new float[3]; Debug.Log(array.Length); foreach (int v in arrayOfInts) { Debug.Log(v); } // Dizionario genericDict["ciao"] = new WSStruct(1); WSStruct temp; if (genericDict.TryGetValue("boh", out temp)) { Debug.Log(temp); } ReturnStruct(out temp); ChangeStruct(ref temp); }
void ChangeStruct(ref WSStruct val) { val.a = 1; }
void ReturnStruct(out WSStruct val) { val = new WSStruct(); val.a = 1; }