public override void ExitState()
 {
     lastChannel = CustomizationChannel.NONE;
     if (dragContainer != null)
     {
         dragContainer.Hide();
     }
 }
示例#2
0
 public override void ExitState()
 {
     if (dragContainer != null)
     {
         dragContainer.Hide();
     }
 }
 private void onDragEnd(ITouch touch)
 {
     dragContainer.Hide();
     if (touch.position.y > (float)Screen.height * mainCamera.rect.y)
     {
         CustomizationContext.EventBus.DispatchEvent(new CustomizerUIEvents.SelectTemplate(templateData, dragContainer.GetSprite()));
     }
     CustomizationContext.EventBus.DispatchEvent(default(CustomizerDragEvents.GestureComplete));
 }
示例#4
0
 private void HideDragContainer()
 {
     dragContainer.Hide();
     Service.Get <EventDispatcher>().DispatchEvent(default(ObjectManipulationEvents.EndDragInventoryItem));
 }