public MoveTo ( Zeplin.GameObject movedObject, |
||
movedObject | Zeplin.GameObject | |
destinationLayer | The layer to move the actor to | |
return | bool |
public bool MoveTo(GameObject movedObject, Layer destinationLayer)
{
bool result = Remove(movedObject);
if (result) destinationLayer.Add(movedObject);
return result;
}