Browse Source

Ball Recycle System

master
JiLingXiaoBai 1 month ago
parent
commit
31992241a6
  1. 2
      client/client/Assets/Scripts/CoreGame/AFramSync/Logic/Service/Matcher/MatcherSvc.cs
  2. 2
      client/client/Assets/Scripts/CoreGame/AFramSync/Logic/System/Ball/BallHitTriggerSystem.cs

2
client/client/Assets/Scripts/CoreGame/AFramSync/Logic/Service/Matcher/MatcherSvc.cs

@ -18,6 +18,6 @@ namespace CoreGame.Logic
(Matcher<LogicEntity>)Matcher<LogicEntity>.AllOf(Lookup.ShootBall, Lookup.BallBag);
public static Matcher<LogicEntity> s_BallRecycle =
(Matcher<LogicEntity>)Matcher<LogicEntity>.AllOf(Lookup.BallRecycle, Lookup.BallData);
(Matcher<LogicEntity>)Matcher<LogicEntity>.AllOf(Lookup.BallRecycle);
}
}

2
client/client/Assets/Scripts/CoreGame/AFramSync/Logic/System/Ball/BallHitTriggerSystem.cs

@ -35,7 +35,7 @@ namespace CoreGame.Logic
{
if (enemy.logicTransform.position.y < -1)
{
enemy.isBallRecycle = true;
entity.isBallRecycle = true;
}
continue;
}

Loading…
Cancel
Save