Пример #1
0
 protected override void OnUpdate()
 {
     if (Random.Range(0, 100) < 2)
     {
         Assert.AreEqual(parent_group_.Length, 1);
         for (var i = 0; i < parent_group_.Length; ++i)
         {
             var time = Time.GetCurrent();
             ECSSightManager.spawnSight(PostUpdateCommands,
                                        time,
                                        parent_group_.entity_array_[i]);
         }
     }
 }
Пример #2
0
 public void Execute(int i)
 {
     ECSSightManager.spawnSight(command_buffer_,
                                time_,
                                sight_parent_entity_array_[0]);
 }