public override void ExitState()
 {
     lastChannel = CustomizationChannel.NONE;
     if (dragContainer != null)
     {
         dragContainer.Hide();
     }
 }
Exemple #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));
 }
Exemple #4
0
 private void HideDragContainer()
 {
     dragContainer.Hide();
     Service.Get <EventDispatcher>().DispatchEvent(default(ObjectManipulationEvents.EndDragInventoryItem));
 }