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

public class Jauge : MonoBehaviour {

    private int m_point;
    //private List<GameObject> m_pointList = new List<GameObject>();

    private float m_yOffset = 2.0f;
    private float m_spriteOffset = 0.06f;

	// Use this for initialization
	void Start () {
        m_point = 0;
    }
	
	// Update is called once per frame
	void Update () {
	
	}

    public void IncrementJauge()
    {
        GameObject p = (GameObject)Instantiate(Resources.Load("Prefabs/Point"));

        Vector2 jaugePos = transform.position;

        float x = transform.position.x;
        float y = transform.position.y - 0.1f * m_point + m_yOffset - m_spriteOffset;

        Debug.Log("X: " + x.ToString());
        Debug.Log("Y: " + y.ToString());

        p.transform.position = new Vector2(x, y);
        m_point++;
    }
}
