Beispiel #1
0
 protected virtual void PanelMenuItemGripPressed(object sender, PanelMenuItemControllerEventArgs e)
 {
     if (currentIndex < colours.Length && changeObject != null)
     {
         changeObject.material.color = colours[currentIndex];
     }
 }
Beispiel #2
0
        protected virtual void PanelMenuItemTriggerPressed(object sender, PanelMenuItemControllerEventArgs e)
        {
            if (currentIndex < colours.Length && changeObject != null)
            {
                changeObject.material.color = colours[currentIndex];
            }

            Transform selected = gridLayoutGroup.transform.GetChild(currentIndex);

            if (selected != null)
            {
                string s = selected.GetComponentInChildren <Text>().text.ToString();
                PhotonView.Get(this).RPC("SetSpeechBubbleText", RpcTarget.All, s);

                if (debug)
                {
                    Debug.Log(name + " : the Text of the current item is:  " + selected.GetComponentInChildren <Text>().text.ToString());
                }
            }
            else
            {
                if (debug)
                {
                    Debug.Log("No Selected Item!");
                }
            }

            simpleSpawner.Spawn(speechBubble.gameObject, new Vector3(e.interactableObject.transform.position.x, e.interactableObject.transform.position.y + 0.5f, e.interactableObject.transform.position.z), transform.rotation);
        }
 public virtual void OnPanelMenuItemSwipeBottom(PanelMenuItemControllerEventArgs e)
 {
     if (PanelMenuItemSwipeBottom != null)
     {
         PanelMenuItemSwipeBottom(this, e);
     }
 }
 public virtual void OnPanelMenuItemSwipeRight(PanelMenuItemControllerEventArgs e)
 {
     if (PanelMenuItemSwipeRight != null)
     {
         PanelMenuItemSwipeRight(this, e);
     }
 }
 public virtual void OnPanelMenuItemHiding(PanelMenuItemControllerEventArgs e)
 {
     if (PanelMenuItemHiding != null)
     {
         PanelMenuItemHiding(this, e);
     }
 }
 protected virtual void OnPanelMenuItemTriggerPressed(PanelMenuItemControllerEventArgs e)
 {
     if (PanelMenuItemTriggerPressed != null)
     {
         PanelMenuItemTriggerPressed(this, e);
     }
 }
Beispiel #7
0
 protected virtual void PanelMenuItemSwipeLeft(object sender, PanelMenuItemControllerEventArgs e)
 {
     if (slider != null)
     {
         slider.value--;
         SetColor();
     }
 }
Beispiel #8
0
 protected virtual void PanelMenuItemSwipeTop(object sender, PanelMenuItemControllerEventArgs e)
 {
     MoveSelectGridLayoutItem(Direction.Up);
 }
Beispiel #9
0
 private void OnPanelMenuItemTriggerPressed(object sender, PanelMenuItemControllerEventArgs e)
 {
     SendMessageToInteractableObject(e.interactableObject);
 }
Beispiel #10
0
 private void OnPanelMenuItemSwipeRight(object sender, PanelMenuItemControllerEventArgs e)
 {
     MoveSelectGridLayoutItem(Direction.Right, e.interactableObject);
 }
Beispiel #11
0
 private void OnPanelMenuItemSwipeRight(object sender, PanelMenuItemControllerEventArgs e)
 {
     slider.value += 1;
     SendMessageToInteractableObject(e.interactableObject);
 }
Beispiel #12
0
 // Token: 0x06001EA9 RID: 7849 RVA: 0x0009BE1F File Offset: 0x0009A01F
 private void OnPanelMenuItemSwipeLeft(object sender, PanelMenuItemControllerEventArgs e)
 {
     this.slider.value -= 1f;
     this.SendMessageToInteractableObject(e.interactableObject);
 }
Beispiel #13
0
 // Token: 0x06001EA3 RID: 7843 RVA: 0x0009BD30 File Offset: 0x00099F30
 private void OnPanelMenuItemSwipeLeft(object sender, PanelMenuItemControllerEventArgs e)
 {
     this.MoveSelectGridLayoutItem(PanelMenuUIGrid.Direction.Left, e.interactableObject);
 }