Ejemplo n.º 1
0
        void Awake()
        {
            Environment.SetEnvironmentVariable("PATH", Environment.GetEnvironmentVariable("PATH") + ";" + PLUGIN_DIRECTORY);

            presenceController = new PresenceController();

            lastUpdate = Time.time;
            state      = new IdlingState(launchStateTimer.Timestamp);
            idleStateTimer.Update();
        }
Ejemplo n.º 2
0
        void Update()
        {
            presenceController.UpdateCallbacks();

            launchStateTimer.Update();
            idleStateTimer.Update();

            float currentTime = Time.time;

            if (currentTime - lastUpdate > updateInterval || !initialized)
            {
                lastUpdate = currentTime;

                PresenceState previousState = state;

                state = UpdateState();

                if (!state.Equals(previousState) || !initialized)
                {
                    presenceController.UpdatePresence(state);
                }

                initialized = true;
            }
        }
Ejemplo n.º 3
0
        public void UpdateTimers()
        {
            launchStateTimer.Update();
            landedStateTimer.Update();

            buildingStateTimer.Update();

            idleStateTimer.Update();
        }