void CreateState(AkDragDropGroupData DDGroupData) { AkState akState = Undo.AddComponent <AkState>(gameObject); if (akState != null) { SetTypeValue(ref akState.valueGuid, ref akState.valueID, DDGroupData); SetGroupTypeValue(ref akState.groupGuid, ref akState.groupID, DDGroupData); } }
void CreateState(Guid componentGuid, int ID, Guid groupGuid, int groupID) { AkState akState = Undo.AddComponent <AkState>(gameObject); if (akState != null) { akState.groupGuid = groupGuid.ToByteArray(); akState.groupID = groupID; akState.valueGuid = componentGuid.ToByteArray(); akState.valueID = ID; } }
void CreateState(string componentGuid, int ID, string groupGuid, int groupID) { AkState akState = Undo.AddComponent <AkState>(gameObject); if (akState != null) { akState.groupGuid = new Guid(groupGuid).ToByteArray(); akState.groupID = groupID; akState.valueGuid = new Guid(componentGuid).ToByteArray(); akState.valueID = ID; } }