Esempio n. 1
0
 public void OnPointerClick(PointerEventData pointerEventData)
 {
     if (isPlayerClose && !bookIsOpen)
     {
         CharacterBookCanvasStatus(true);
     }
     else
     {
         characterMovement.MoveTo(CharacterBookPosition);
         isClosedExternally = false;
     }
 }
 public void OnPointerClick(PointerEventData pointerEventData)
 {
     if (isPlayerClose && !isOpen)
     {
         Canvas.SetActive(true);
         willOpen = false;
     }
     else
     {
         willOpen = true;
         characterMovement.MoveTo(Position);
         isClosedExternally = false;
     }
 }
Esempio n. 3
0
 public void OnPointerClick(PointerEventData pointerEventData)
 {
     if (isPlayerClose)
     {
         if (!isFinished)
         {
             WeaponSelectionCanvasStatus(true);
         }
         else
         {
             //Debug.Log("todo: go to world scene");
         }
     }
     else
     {
         characterMovement.MoveTo(DoorPosition);
         isClosedExternally = false;
     }
 }