Beispiel #1
0
    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);
        }
    }
Beispiel #2
0
    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;
        }
    }
Beispiel #3
0
    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;
        }
    }