|
@ -34,17 +34,6 @@ namespace CoreGame.Logic |
|
|
var ballInfo = bagComp.willShootBalls.Dequeue(); |
|
|
var ballInfo = bagComp.willShootBalls.Dequeue(); |
|
|
var logicTransform = entity.logicTransform; |
|
|
var logicTransform = entity.logicTransform; |
|
|
|
|
|
|
|
|
// Fixed64Vector2 dir = Fixed64Vector2.up;
|
|
|
|
|
|
// if (logicTransform.position.y < -1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// dir = Fixed64Vector2.zero - logicTransform.position;
|
|
|
|
|
|
// dir.Normalize();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// dir = FixedRandom.instance.NextDirection2D();
|
|
|
|
|
|
// }
|
|
|
|
|
|
//
|
|
|
|
|
|
LEntityCreatorSvc.CreateBallEntity(entity, logicTransform.position, bagComp.shootDir, ballInfo); |
|
|
LEntityCreatorSvc.CreateBallEntity(entity, logicTransform.position, bagComp.shootDir, ballInfo); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|