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

public class WaveSource : MonoBehaviour {

    public Vector2I position;

    public Wave[] waves;

    private Vector2I basePos;

    void Start()
    {
        basePos = position;
        UpdatePositionOnGrid();
    }

    public void UpdatePositionOnGrid()
    {
        //position.x += (int)(transform.position.x / Griddy.Instance.cellWidth);
        //position.y += (int)(transform.position.y / Griddy.Instance.cellHeight);
        position.x = (int)(transform.position.x / Griddy.Instance.cellWidth);
        position.y = (int)(transform.position.y / Griddy.Instance.cellHeight);
    }

}
