예제 #1
0
 public void RemoveGridObjectProxy(GridObjectProxyEdit proxy)
 {
     Debug.Log("Grid Object Removed: " + proxy.name);
     if (objectProxies.Contains(proxy))
     {
         objectProxies.Remove(proxy);
     }
 }
예제 #2
0
 public void ReceiveGridObjectProxy(GridObjectProxyEdit proxy)
 {
     if (!objectProxies.Contains(proxy) && proxy != null)
     {
         objectProxies.Add(proxy);
         proxy.SetPosition(tile.position);
     }
 }
예제 #3
0
 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
 }