public void NotifyOfConveyanceFinished(ConveyanceController conveyance) { if (m_PlayersAttachedToConveyances.ContainsKey(conveyance)) { m_PlayersAttachedToConveyances[conveyance].DetachClientsFromConveyance(); m_PlayersAttachedToConveyances.Remove(conveyance); } m_Conveyors.Remove(conveyance); m_FinishedConveyances.Add(conveyance); //Give clients a chance to detach from the conveyances Invoke("DestroyConveyance", 1f); }
public void RemovePlayerFromConveyance(PlayerInteractionController player, ConveyanceController conveyance) { conveyance.DetachObject(player.gameObject); m_PlayersAttachedToConveyances.Remove(conveyance); }
public void NotifyOfAttachToConveyance(PlayerInteractionController player, ConveyanceController conveyance) { conveyance.AttachObject(player.gameObject); conveyance.ServerStartRunning(); m_PlayersAttachedToConveyances[conveyance] = player; }