void Awake() { ItsRandom.setRandomSeed(1234567890, "bags"); ItsRandom.setRandomSeed(987654321, "people"); // "Download" people config - TODO - this should be done elsewhere, preloaded per mission string peopleConfigUrl = "http://samlingar.com/whatareyoucarryingsir/example-people-config-2.xml"; StartCoroutine(loadPeopleConfig(peopleConfigUrl)); // Set framerate only for editor - Should do based on device later?! //#if UNITY_EDITOR QualitySettings.vSyncCount = 0; // VSync must be disabled Application.targetFrameRate = 90; //#endif Game.instance = this; CameraHandler.SetPerspectiveCamera(gameCamera); swipeRecognizer = new TKSwipeRecognizer(); twoTapRecognizer = new TKTapRecognizer(); tapRecognizer = new TKTapRecognizer(); continousHoldRecognizer = new TKContinousHoldRecognizer(); // Last in line for click triggering PubSub.subscribe("Click", this, Int32.MaxValue); pauseGame(true); }
// Start is called before the first frame update void Start() { ItsRandom.setRandomSeed(9); // Trigger "random"-functions on it RandomInterface[] randomInterfaces = GetComponents <RandomInterface>(); foreach (RandomInterface randomInterface in randomInterfaces) { randomInterface.run(); } // ActionOnInspect[] actionInterfaces = GetComponents<ActionOnInspect>(); // foreach (ActionOnInspect actionInterface in actionInterfaces) { // actionInterface.run(); // } }