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); } }
public void OnRightClick(object sender, RightClickEventArgs e) { if (_isSelected) { _moveTarget.x = e.PressedNode.WorldVector2.x; _moveTarget.y = e.PressedNode.WorldVector2.y; StopAllCoroutines(); StartCoroutine(UpdateThreadPath()); } }