예제 #1
0
    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);
    }
예제 #2
0
    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;
    }