Exemple #1
0
 public void FollowNewUser(NodeAddedEvent e, WeaponNode weapon, [JoinByUser] FollowedBattleUserNode followedBattleUser)
 {
     if (!weapon.Entity.HasComponent <CameraTargetComponent>())
     {
         CameraTargetComponent component = new CameraTargetComponent(weapon.weaponInstance.WeaponInstance);
         weapon.Entity.AddComponent(component);
     }
 }
 private List <UserUidNode> FilterUsers(ICollection <UserUidNode> users, ICollection <ReadyBattleUserAsTankNode> tanks, UserUidNode currentUser, FollowedBattleUserNode currentBattleUser)
 {
Exemple #3
0
 public void SetTankAsReadyForCameraJoining(TankMovementInitEvent evt, RemoteTankNode tank, [JoinByUser] FollowedBattleUserNode followedBattleUser)
 {
     tank.Entity.AddComponent <FollowedTankReadyToCameraComponent>();
 }