void Awake() { textsManager = GameObject.Find("TextsManager").GetComponent <TextsManager> (); levelTerrain = GameObject.Find("Terrain").GetComponent <Terrain>(); mouseIsDown = false; isCreatingTrail = false; trailCreationPhase = 0; canBuild = false; trailConfirmationMenu.gameObject.SetActive(false); skiLiftConfirmationMenu.gameObject.SetActive(false); cantBuildMenu.gameObject.SetActive(false); pointsList = new List <GameObject> (); treesToRemoveList = new List <GameObject> (); // trails = new List<GameObject[,,,,,,,,,,,,,,,,,,,,]>(); // currentTrail = new List<GameObject> (); currentBorders = new List <GameObject> (); currentColliders = new List <GameObject> (); skiersList = new List <GameObject> (); trailLineRendPosList = new List <GameObject> (); totalTreesList = new List <GameObject> (); currentWayUpPosList = new List <Vector3> (); skiersToSpawn = 0; canSpawnSkiers = false; messageMenu.gameObject.SetActive(false); SetTrailLists(); // StartCoroutine (BatchTrees ()); }
private void Awake() { inst = this; string fs = textFile.text; lines = Regex.Split(fs, "\n|\r|\r\n"); }
void Awake() { if (!mInstance) { mInstance = this; } DontDestroyOnLoad(this); }
void Awake() { if (instance == null) { instance = this; } else { Destroy(this); } DontDestroyOnLoad(this.gameObject); LoadTexts(); }
void Start() { textsManager = GameObject.Find("TextsManager").GetComponent <TextsManager> (); textComp = GetComponent <Text> (); SetText(); }
public void releaseRes() { textsManager = null; }
public Form_TextsManager(TextsManager textsManagerT) { InitializeComponent(); this.textsManager = textsManagerT; initParams(); }
public TextsManagerTests() { _textsManager = new TextsManager(); }
static void Initialise() { Console.WriteLine("========================================="); Console.WriteLine(" Jabbo V3.2 Server"); Console.WriteLine(" (C) Thomas Vermaercke 2006-2013"); Console.WriteLine("========================================="); Console.WriteLine(""); Console.WriteLine("Starting up..."); INIFile MyINIFile = new INIFile("settings.ini"); Config.linux = bool.Parse(MyINIFile.GetValue("config", "linux", "true")); if (!Config.linux) { Console.WindowHeight = Console.LargestWindowHeight - 25; Console.WindowWidth = Console.LargestWindowWidth - 25; Console.Title = "Jabbo Server"; } Config.debug = bool.Parse(MyINIFile.GetValue("config", "debug", "false")); Config.port = int.Parse(MyINIFile.GetValue("config", "port", "3500")); Config.maxconn = int.Parse(MyINIFile.GetValue("config", "maxcon", "150")); Config.dbHost = MyINIFile.GetValue("mysql", "host", "localhost"); Config.dbPort = int.Parse(MyINIFile.GetValue("mysql", "port", "")); Config.dbUsername = MyINIFile.GetValue("mysql", "username", "root"); Config.dbPassword = MyINIFile.GetValue("mysql", "password", ""); Config.dbName = MyINIFile.GetValue("mysql", "database", "jabbo"); Console.WriteLine(" Options read successfully."); if (MySQL.openConnection(Config.dbHost, Config.dbPort, Config.dbName, Config.dbUsername, Config.dbPassword) == false) { return; } Console.WriteLine(""); TextsManager.Init(); UserManager.Init(); CatalogueManager.Init(); RankManager.Init(); NavigatorManager.Init(); if (SocketServer.Init(Config.port, Config.maxconn) == false) { return; } if (WebsiteSocketServer.Init(Config.port + 1, "127.0.0.1") == false) { return; } serverMonitor.Priority = ThreadPriority.Lowest; serverMonitor.Start(); CsHTTPServer.CsHTTPServer HTTPServer; HTTPServer = new CsHTTPServer.MyServer(3502); HTTPServer.Start(); }