public string processKey(char c) { string ret = status_map[c].processKey(c); if (status_map[c].update()) { status_map[c].reset(c, image_map[c], text_map[c]); status_map[c] = new StatusNormal(key_default, image_map[c], text_map[c]); --numKeysAffected; } return(ret); }
private IEnumerator keyTimer(char c, float seconds) { float time = 0; while (time < seconds) { yield return(new WaitWhile(() => BattleManagerS.main.pause)); yield return(new WaitForEndOfFrame()); time += Time.deltaTime; } status_map[c].reset(c, image_map[c], text_map[c]); status_map[c] = new StatusNormal(key_default, image_map[c], text_map[c]); --numKeysAffected; yield break; }