/// <summary> /// Moves an actor to another layer /// </summary> /// <param name="movedActor">The actor to be moved</param> /// <param name="destinationLayer">The layer to move the actor to</param> /// <returns>True if the operation was successful, otherwise false</returns> public bool MoveTo(GameObject movedObject, Layer destinationLayer) { bool result = Remove(movedObject); if (result) destinationLayer.Add(movedObject); return result; }