//------------------------------------------------------------------------/ // Methods //------------------------------------------------------------------------/ private void Initialize() { // Create the custom text style used by this visualizer textStyle = new GUIStyle(); textStyle.richText = true; // Set the poll timer pollTimer = new StratusStopwatch(pollFrequency); pollTimer.resetOnFinished = true; pollTimer.SetCallback(OnPoll); // Create separate draw lists for different visualization modes CreateDrawLists(); // Build the map used for custom rendering settings per object renderSettingsMap = new Dictionary <GameObject, MemberVisualizationRenderSettings>(); foreach (var rs in renderSettingsList) { renderSettingsMap.Add(rs.gameObject, rs); } // For all members to be visualized in the game view... ConstructGameVisualizations(); // Poll the member values initially //OnPoll(); }
public StratusTimedInputCallback(string name, float cooldown) : base(name) { this.Timer = new StratusStopwatch(cooldown); }