Ejemplo n.º 1
0
 public static void OnRightClicked(RightClickEventArgs e)
 {
     if (RightClickHandler != null)
     {
         RightClickHandler(null, e);
     }
 }
 public void OnRightClick(object sender, RightClickEventArgs e)
 {
     if (_isSelected)
     {
         // Set the spawn point
         SpawnPoint = EntityBuilder.ChangeEntitySpawnPoint(e.PressedNode.WorldVector2, SpawnPoint);
     }
 }
Ejemplo n.º 3
0
 public void OnRightClick(object sender, RightClickEventArgs e)
 {
     if (_isSelected)
     {
         _moveTarget.x = e.PressedNode.WorldVector2.x;
         _moveTarget.y = e.PressedNode.WorldVector2.y;
         StopAllCoroutines();
         StartCoroutine(UpdateThreadPath());
     }
 }