//敵が部屋に入る関数
    public void OnStart(Room _room)
    {
        //プレイヤーを探すフラグ
        searchPlayerFlag = true;
        room             = _room;

        /*
         * 処理の流れ
         * ・ドアの開閉
         * ・敵オブジェクトの場所と方向の初期化
         * ・
         */

        switch (_room)
        {
        case Room.roomA:
            Debug.Log("roomA");
            onStartAnimate = true;
            enterRoomATimeLine.Play();
            //enterRoomATimeLineが終了したときに呼び出される
            enterRoomATimeLine.stopped += ExitRoom;

            doorController = doorA.GetComponent <DoorController>();
            doorController.EnterEnemyInRoom();

            break;

        case Room.roomC:
            Debug.Log("roomC");
            onStartAnimate = true;
            enterRoomCTimeLine.Play();

            enterRoomCTimeLine.stopped += ExitRoom;

            doorController = doorA.GetComponent <DoorController>();
            doorController.EnterEnemyInRoom();

            break;

        case Room.entrance:
            onStartAnimate = true;
            enterRoomEntranceRoomTimeLine.Play();
            enterRoomEntranceRoomTimeLine.stopped += GameOver;
            break;

        default:
            break;
        }
    }