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

public class ClockScript : MonoBehaviour {

	private float timer = 0.0f;
	//private float minutes = 0.0f;
	//private float seconds = 0.0f;

	private GameObject clockFace;
	public GameObject minutesHand;
	public GameObject secondsHand;


	void Start () {
		clockFace = this.gameObject;
	}

	void Update () {
		timer += Time.deltaTime;

		//minutes = (float) timer / 60;
		//seconds = (float) timer % 60;

		minutesHand.transform.RotateAround(clockFace.transform.position, Vector3.left, -(Time.deltaTime * 6)/60);
		secondsHand.transform.RotateAround(clockFace.transform.position, Vector3.left, -(Time.deltaTime * 6));
	}
}
