using UnityEngine;
using System.Collections;

public class coinToken : MonoBehaviour {
    public GameObject token;
	// Use this for initialization
	void Start () {

            token = (GameObject)Instantiate(Test.coinTokenn, this.transform.position + new Vector3(0, 1, 0), new Quaternion(0, 0, 0, 0));
	}
	
	// Update is called once per frame
	void Update () {
        if (token)
            token.transform.Rotate(Vector3.up, 60 * Time.deltaTime);
	}
}
