void FixedUpdate() { //means tht it has it loaded if (_gameTime == null || _gameTimePeople == null) { return; } GameTime1.FixedUpdate(); GameTimePeople.FixedUpdate(); }
internal Structure GimeMeUnusedDummy(string myIDP) { for (int i = 0; i < dummiesSpwnPoint.Count; i++) { if (dummiesSpwnPoint[i].transform.position == new Vector3() && dummiesSpwnPoint[i].transform.rotation == Quaternion.identity && string.IsNullOrEmpty(dummiesSpwnPoint[i].DummyIdSpawner) && dummiesSpwnPoint[i].LandZone1.Count == 0) { //Debug.Log("return dummy #:"+i); dummiesSpwnPoint[i].name = myIDP + ".Dummy"; dummiesSpwnPoint[i].UsedAt = GameTime1.CurrentDate(); return(dummiesSpwnPoint[i]); } } return(null); }
private IEnumerator OneSecUpdate() { while (true) { yield return(new WaitForSeconds(1)); // wait GameTime1.OneSecUpdate(); GameController1.UpdateOneSecond(); DataController.Update(); HUDFPS.Message = " | " + MouseInBorderRTS.GlobalDir.ToString() + "| Dragged: " + Way._dir + " | InputMode: " + BuildingPot.InputMode + "\n" + more + "\n" + AddPersonControllerInfo() + " | " + AddLoadingInfo() // + Pull AddUnityStats() + AddCachedReoutesCount(); } }