Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
//Note this line, if it is left out, the script won't know that the class 'Path' exists and it will throw compiler errors
//This line should always be present at the top of scripts which use pathfinding
using Pathfinding;
public class AstarAI : MonoBehaviour
{
//The point to move to
public Transform target;
using System;
using System.Collections.Generic;
using System.ServiceProcess;
namespace AStarAlgorithm
{
static class Program
{
[STAThread]
static void Main()
#if !DEBUG //Dont patch client while in DEBUG
if (VersionSplit.Length == 3)
{
string[] versionArray = VersionString.Split('|');
if (VersionSplit[0] != CurrentMD5)
{
LogTextBox("LegendaryClient needs to be updated");
/*Dispatcher.BeginInvoke(DispatcherPriority.Input, new ThreadStart(() =>
{
CurrentStatusLabel.Content = "Downloading latest LegendaryClient...";