Beispiel #1
0
    private float GetGhostIdleTimer(GhostController.Ghost ghost)
    {
        float idleTimer = 0f;

        switch (ghost)
        {
        case GhostController.Ghost.BLINKY:
            idleTimer = blinkyIdle;
            break;

        case GhostController.Ghost.PINKY:
            idleTimer = pinkyIdle;
            break;

        case GhostController.Ghost.INKY:
            idleTimer = inkyIdle;
            break;

        case GhostController.Ghost.CLYDE:
            idleTimer = clydeIdle;
            break;
        }

        return(idleTimer);
    }
Beispiel #2
0
    public float[] GetGhostTimers(GhostController.Ghost ghost)
    {
        float[] tempGhostTimers = { GetGhostIdleTimer(ghost), scatterTimers[0], chaseTime, scatterTimers[1], chaseTime, scatterTimers[2], chaseTime, scatterTimers[3] };

        return(tempGhostTimers);
    }