using UnityEngine;
using System.Collections;
using Gamelogic.Grids2;

public class EdgeTile : MonoBehaviour 
{
    //private GridPoint2 CENTER = new GridPoint2(5, 5);

    //void Touch(GameObject target)
    //{
    //    Actor a = target.GetComponent<Actor>();
    //    if (a != null && a.IsCarryingEgg)
    //    {
    //        Vector3 escapeDir = (transform.position - GameMap.Cell[CENTER].transform.position).normalized;
    //        SmoothMovement escape = new SmoothMovement(a.transform, transform.position, a.transform.position + 1.3f * escapeDir, 0.7f, 0.3f);

    //        RenderPipeline.RenderSound("Escape"); 
    //        RenderPipeline.Render(escape);            
    //        RenderPipeline.RenderCode(() => GameObject.Destroy(a.gameObject));

    //        GameMap.Cell[a.Location].RemoveActor();
    //    }
    //}

}
