コード例 #1
0
    public void ResetScene()
    {
        CalmGhosts();

        pacman.transform.position = new Vector3(15f, 11f, 0f);
        blinky.transform.position = new Vector3(15f, 20f, 0f);
        pinky.transform.position  = new Vector3(14.5f, 17f, 0f);
        inky.transform.position   = new Vector3(16.5f, 17f, 0f);
        clyde.transform.position  = new Vector3(12.5f, 17f, 0f);

        pacman.GetComponent <PlayerControllerPacman>().ResetDestination();
        blinky.GetComponent <GhostMove>().InitializeGhost();
        pinky.GetComponent <GhostMove>().InitializeGhost();
        inky.GetComponent <GhostMove>().InitializeGhost();
        clyde.GetComponent <GhostMove>().InitializeGhost();

        gameState = GameState.Init;
        gui.HandlerShowReadyScreen();
    }