private void ExecuteAssignValueExample() { int assignedValue = 10; var sampleStruct = new SampleStruct(); sampleStruct.sampleInt = assignedValue; sampleStruct.sampleInt = 9; Debug.Log("<color=green>assignedValue</color> = " + assignedValue); }
private void ExecuteAssignDefaultValueExample() { var structA = new SampleStruct(); Debug.Log("structA.sampleInt = " + structA.sampleInt); if (structA.sampleClass == null) { Debug.Log("structA.sampleClass is null"); } }