public void RemoveGridObjectProxy(GridObjectProxyEdit proxy) { Debug.Log("Grid Object Removed: " + proxy.name); if (objectProxies.Contains(proxy)) { objectProxies.Remove(proxy); } }
public void ReceiveGridObjectProxy(GridObjectProxyEdit proxy) { if (!objectProxies.Contains(proxy) && proxy != null) { objectProxies.Add(proxy); proxy.SetPosition(tile.position); } }
public bool CanReceive(GridObjectProxyEdit obj) { if (obj is UnitProxyEditor) { if (HasUnit())//TODO: rework to a better system with layers { return(false); } } return(true);//for now }