﻿using UnityEngine;
using System.Collections;

public class Game_0 : MonoBehaviour
{
    [SerializeField]
    private Camera m_camera;

    private bool m_startLV0;
    private float xt;

    void Start()
    {
        m_startLV0 = false;
        xt = 0;
    }

    void Update()
    {
        if (m_startLV0 == true)
        {
            xt += 0.5f * Time.deltaTime;
        }

        if (xt >= 2f)
        {
            Application.Quit();
        }
    }

    void OnTouchUp()
    {
        m_camera.transform.position = new Vector3(68.3f, 0, -10);
        m_startLV0 = true;
    }
}