protected override void OnTrigger()
 {
     for (int i = 0; i < 2; i++)
     {
         Vector2 spawnPosition = SPM.GenerateValidCenter(radius);
         GravityHoleEntity.Spawn(Engine, ProcessManager, spawnPosition);
     }
 }
 protected override void OnTrigger()
 {
     GravityHoleEntity.Spawn(Engine, ProcessManager, new Vector2(-maxWidth / 2 + radius, maxHeight / 2 - radius));
     GravityHoleEntity.Spawn(Engine, ProcessManager, new Vector2(maxWidth / 2 - radius, maxHeight / 2 - radius));
     GravityHoleEntity.Spawn(Engine, ProcessManager, new Vector2(-maxWidth / 2 + radius, -maxHeight / 2 + radius));
     GravityHoleEntity.Spawn(Engine, ProcessManager, new Vector2(maxWidth / 2 - radius, -maxHeight / 2 + radius));
     //GravityHoleEntity.Spawn(Engine, ProcessManager, new Vector2(0, 0));
     ;
 }
示例#3
0
 private void CreateEntityAtPosition(Vector2 position)
 {
     GravityHoleEntity.Spawn(Engine, ProcessManager, position);
 }