void enableCGReward(string prefName, int arrayNumber) { continueButton.interactable = false; bool[] charaTemp = VNPrefs.GetBoolArray(prefName); charaTemp [arrayNumber] = true; VNPrefs.SetBoolArray(prefName, charaTemp); lineCounter++; messageScrolling = false; StartCoroutine(nextWithWaitSpriteAnimator()); continueButton.interactable = true; }
void enableCharaChapter(string charaPref, int parameter) { continueButton.interactable = false; bool[] charaTemp = VNPrefs.GetBoolArray(charaPref); charaTemp [parameter] = true; VNPrefs.SetBoolArray(charaPref, charaTemp); lineCounter++; messageScrolling = false; StartCoroutine(nextWithWaitSpriteAnimator()); continueButton.interactable = true; }