コード例 #1
0
 public void Execute(ref CubeData data, int index, int batch)
 {
     if (data.Position.sqrMagnitude > MaxDistance * MaxDistance)
     {
         data = new CubeData
         {
             ID                = data.ID,
             Position          = random.Inside(RespawnArea),
             Velocity          = random.Direction() * RespawnForce,
             TimeNotHitTarget1 = 999f,
             TimeNotHitTarget2 = 999f
         };
     }
 }