コード例 #1
0
    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);
    }
コード例 #2
0
 public void RemovePlayerFromConveyance(PlayerInteractionController player, ConveyanceController conveyance)
 {
     conveyance.DetachObject(player.gameObject);
     m_PlayersAttachedToConveyances.Remove(conveyance);
 }
コード例 #3
0
 public void NotifyOfAttachToConveyance(PlayerInteractionController player, ConveyanceController conveyance)
 {
     conveyance.AttachObject(player.gameObject);
     conveyance.ServerStartRunning();
     m_PlayersAttachedToConveyances[conveyance] = player;
 }