Пример #1
0
 public void OnGUI()
 {
     if (GUILayout.Button("2", new GUILayoutOption[0]))
     {
         this.CreateAgents(2);
     }
     if (GUILayout.Button("10", new GUILayoutOption[0]))
     {
         this.CreateAgents(10);
     }
     if (GUILayout.Button("100", new GUILayoutOption[0]))
     {
         this.CreateAgents(100);
     }
     if (GUILayout.Button("500", new GUILayoutOption[0]))
     {
         this.CreateAgents(500);
     }
     if (GUILayout.Button("1000", new GUILayoutOption[0]))
     {
         this.CreateAgents(1000);
     }
     if (GUILayout.Button("5000", new GUILayoutOption[0]))
     {
         this.CreateAgents(5000);
     }
     GUILayout.Space(5f);
     if (GUILayout.Button("Random Streams", new GUILayoutOption[0]))
     {
         this.type = LightweightRVO.RVOExampleType.RandomStreams;
         this.CreateAgents((this.agents == null) ? 100 : this.agents.Count);
     }
     if (GUILayout.Button("Line", new GUILayoutOption[0]))
     {
         this.type = LightweightRVO.RVOExampleType.Line;
         this.CreateAgents((this.agents == null) ? 10 : Mathf.Min(this.agents.Count, 100));
     }
     if (GUILayout.Button("Circle", new GUILayoutOption[0]))
     {
         this.type = LightweightRVO.RVOExampleType.Circle;
         this.CreateAgents((this.agents == null) ? 100 : this.agents.Count);
     }
     if (GUILayout.Button("Point", new GUILayoutOption[0]))
     {
         this.type = LightweightRVO.RVOExampleType.Point;
         this.CreateAgents((this.agents == null) ? 100 : this.agents.Count);
     }
 }
Пример #2
0
 public void OnGUI()
 {
     if (GUILayout.Button("2", new GUILayoutOption[0]))
     {
         this.CreateAgents(2);
     }
     if (GUILayout.Button("10", new GUILayoutOption[0]))
     {
         this.CreateAgents(10);
     }
     if (GUILayout.Button("100", new GUILayoutOption[0]))
     {
         this.CreateAgents(100);
     }
     if (GUILayout.Button("500", new GUILayoutOption[0]))
     {
         this.CreateAgents(500);
     }
     if (GUILayout.Button("1000", new GUILayoutOption[0]))
     {
         this.CreateAgents(1000);
     }
     if (GUILayout.Button("5000", new GUILayoutOption[0]))
     {
         this.CreateAgents(5000);
     }
     GUILayout.Space(5f);
     if (GUILayout.Button("Random Streams", new GUILayoutOption[0]))
     {
         this.type = LightweightRVO.RVOExampleType.RandomStreams;
         this.CreateAgents((this.agents == null) ? 100 : this.agents.Count);
     }
     if (GUILayout.Button("Line", new GUILayoutOption[0]))
     {
         this.type = LightweightRVO.RVOExampleType.Line;
         this.CreateAgents((this.agents == null) ? 10 : Mathf.Min(this.agents.Count, 100));
     }
     if (GUILayout.Button("Circle", new GUILayoutOption[0]))
     {
         this.type = LightweightRVO.RVOExampleType.Circle;
         this.CreateAgents((this.agents == null) ? 100 : this.agents.Count);
     }
     if (GUILayout.Button("Point", new GUILayoutOption[0]))
     {
         this.type = LightweightRVO.RVOExampleType.Point;
         this.CreateAgents((this.agents == null) ? 100 : this.agents.Count);
     }
 }