示例#1
0
 //------------------------------------------------------------------------/
 // 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();
 }
示例#2
0
 public StratusTimedInputCallback(string name, float cooldown) : base(name)
 {
     this.Timer = new StratusStopwatch(cooldown);
 }