Skip to content

Commit

Permalink
Bump max lipsync characters to 100 (was 50)
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Aug 2, 2021
1 parent 238657d commit 20babea
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions MOD.Scripts.Core.Scene/MODSceneController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace MOD.Scripts.Core.Scene
{
public class MODSceneController
{
private const int MAX_CHARACTERS = 100;
public static int MODLipSync_Character_Audio;

public struct Filter
Expand Down Expand Up @@ -263,15 +264,15 @@ public bool MODLipSyncBoolCheck(int character)
public void MODLipSyncInitializeAll()
{
MODLipSync_Character_Audio = 0;
MODLipSync_Bool = new bool[50];
MODLipSync_Layer = new int[50];
MODLipSync_Texture = new string[50];
MODLipSync_X = new int[50];
MODLipSync_Y = new int[50];
MODLipSync_Z = new int[50];
MODLipSync_Priority = new int[50];
MODLipSync_Channel = new int[50];
MODLipSync_CoroutineId = new ulong[50];
MODLipSync_Bool = new bool[MAX_CHARACTERS];
MODLipSync_Layer = new int[MAX_CHARACTERS];
MODLipSync_Texture = new string[MAX_CHARACTERS];
MODLipSync_X = new int[MAX_CHARACTERS];
MODLipSync_Y = new int[MAX_CHARACTERS];
MODLipSync_Z = new int[MAX_CHARACTERS];
MODLipSync_Priority = new int[MAX_CHARACTERS];
MODLipSync_Channel = new int[MAX_CHARACTERS];
MODLipSync_CoroutineId = new ulong[MAX_CHARACTERS];
}

public Texture2D MODLipSyncPrepare(int charnum, string expressionnum)
Expand All @@ -283,16 +284,16 @@ public Texture2D MODLipSyncPrepare(int charnum, string expressionnum)

static MODSceneController()
{
MODLipSync_Bool = new bool[50];
MODLipSync_Layer = new int[50];
MODLipSync_Texture = new string[50];
MODLipSync_X = new int[50];
MODLipSync_Y = new int[50];
MODLipSync_Z = new int[50];
MODLipSync_Priority = new int[50];
MODLipSync_Type = new int[50];
MODLipSync_Channel = new int[50];
MODLipSync_CoroutineId = new ulong[50];
MODLipSync_Bool = new bool[MAX_CHARACTERS];
MODLipSync_Layer = new int[MAX_CHARACTERS];
MODLipSync_Texture = new string[MAX_CHARACTERS];
MODLipSync_X = new int[MAX_CHARACTERS];
MODLipSync_Y = new int[MAX_CHARACTERS];
MODLipSync_Z = new int[MAX_CHARACTERS];
MODLipSync_Priority = new int[MAX_CHARACTERS];
MODLipSync_Type = new int[MAX_CHARACTERS];
MODLipSync_Channel = new int[MAX_CHARACTERS];
MODLipSync_CoroutineId = new ulong[MAX_CHARACTERS];
}

private void MODLipSyncStoreAudioChannel(int character, int channel)
Expand Down

0 comments on commit 20babea

Please sign in to comment.