using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Pause : MonoBehaviour {

	public GameObject butPlay;
	Animator ani;


	// Use this for initialization
	void Start () {
		ani = butPlay.GetComponent<Animator> ();
	}

	// Update is called once per frame
	void Update () {
		if (Input.GetKeyDown(KeyCode.D)) {
			ani.speed = 0;
			PauseSign.sign = true;

		}
	}
	public void onClick(){
		
		PauseSign.sign = true;
	}
}