Esempio n. 1
0
        private void ExecuteAssignValueExample()
        {
            int assignedValue = 10;
            var sampleStruct  = new SampleStruct();

            sampleStruct.sampleInt = assignedValue;

            sampleStruct.sampleInt = 9;

            Debug.Log("<color=green>assignedValue</color> = " + assignedValue);
        }
Esempio n. 2
0
        private void ExecuteAssignDefaultValueExample()
        {
            var structA = new SampleStruct();

            Debug.Log("structA.sampleInt = " + structA.sampleInt);


            if (structA.sampleClass == null)
            {
                Debug.Log("structA.sampleClass is null");
            }
        }