﻿using UnityEngine;
using System.Collections;

public class Player : MonoBehaviour {


	public GameObject snowmanPrefab;

	// Use this for initialization
	void Start () {
				//StartCoroutine( SpawnSnowman() );
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	IEnumerator SpawnSnowman()
	{
		yield return new WaitForSeconds( 10.0f );

				Vector3 offset = Quaternion.AngleAxis( Random.Range(0, 360), Vector3.up ) * (new Vector3(400,0,0));
				Vector3 spawnPos = transform.position + offset + (Vector3.up * 30);

				GameObject.Instantiate( snowmanPrefab, spawnPos, Quaternion.identity);

	}
}
