Beispiel #1
0
    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);
    }
Beispiel #2
0
 void ChangeStruct(ref WSStruct val)
 {
     val.a = 1;
 }
Beispiel #3
0
 void ReturnStruct(out WSStruct val)
 {
     val   = new WSStruct();
     val.a = 1;
 }