public void SetShooter(int ctrl, int player)
 {
     if (trainObj != null && trainObj.Count != 0 && ctrl >= 0 && ctrl < trainObj.Count)
     {
         trainObj[ctrl].shooter = player;
         if (player == -1)
         {
             if (localController.trainID == ctrl)
             {
                 localController.LeaveTrain();
             }
             trainObj[ctrl].regen();
         }
         else if (MyInfoManager.Instance.Seq == player)
         {
             localController.OnGetTrain();
         }
     }
 }