コード例 #1
0
    public IEnumerator StartSpawningRobots(RobotSettings robot)
    {
        while (true)
        {
            yield return(new WaitForSeconds(robot.spawnRate));

            this.pooler.SpawnFromPool(robot.tag, this.spawnPoint.position, Quaternion.identity);
        }
    }
コード例 #2
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public MainPage()
        {
            InitializeComponent();
            aboutView          = new About();
            robotTelemetryView = new RobotTelemetry();
            settingsView       = new Settings();
            robotSettingsView  = new RobotSettings();

            // Initial View
            mainViewArea.Content = robotTelemetryView;
        }
コード例 #3
0
 /// <summary>
 /// Specifies the time controller is being polled for data.
 /// </summary>
 public AbstractController()
 {
     controllerSettings = ControllerSettings.Instance;
     robotSettings      = RobotSettings.Instance;
     isNotReserved      = true;
 }