Simple Game Summary
簡單的游戲總結
With this example, we have covered most of the basic concepts and components needed to make a simple Multiplayer Networked game.
在這個例子中,我們已經涵蓋了制作一個簡單的多人網絡游戲所需的大部分基本概念和組件。
We have covered that basic architecture of a project written to use the Multiplayer Networking High Level API (HLAPI).
我們已經介紹了一個使用多人網絡高級API (HLAPI)編寫的項目的基本架構。
We understand that when using the HLAPI, the Server and all of the Clients are executing the same code from the same scripts on the same GameObjects at the same time.
我們理解,當使用HLAPI時,服務器和所有客戶端同時在相同的游戲對象上執行相同的代碼。
We have discussed how to control the flow of logic when using the HLAPI with checks for the Server, LocalPlayer and Client.
我們討論了如何在使用HLAPI檢查服務器、LocalPlayer和客戶機時控制邏輯流。
We have covered the RPCs available to the HLAPI;
我們已經覆蓋了HLAPI可使用的RPCs;
both Commands and ClientRpc’s.
這兩個命令和ClientRpc。
We have seen how to work with Commands, which are called on the Client and are executed on the Server;
我們已經了解了如何處理命令,這些命令在客戶機上調用,并在服務器上執行;
and ClientRpc’s, which are called on the Server, but invoked on the Clients.
以及ClientRpc的,它在服務器上調用,但在客戶機上調用。
We have covered SyncVars and SyncVar hooks.
我們已經討論了SyncVars和SyncVar鉤子。
We can keep variables in sync with the [SyncVar] attribute, and call functions when the values change with SyncVar hooks.
我們可以將變量與[SyncVar]屬性保持同步,并在值隨SyncVar掛鉤變化時調用函數。
We have seen how we can keep the Transforms of our networked GameObjects synchronized with the the NetworkIdentity and the NetworkTransform component.
我們已經看到了如何將我們的網絡游戲對象的轉換與NetworkIdentity和NetworkTransform組件保持同步。
We have covered many of the built-in components available under Networking in the editor, including the NetworkManager, the NetworkManagerHUD and the NetworkStartPosition.
在編輯器中,我們已經介紹了許多在網絡中可用的內置組件,包括NetworkManager、NetworkManagerHUD和NetworkStartPosition。
There are more built-in components available under Networking, but these are more specialized, not used as frequently and will be covered in other lessons.
在網絡中有更多的內置組件,但是這些組件更專門化,不經常使用,并且將在其他課程中使用。
We hope that this lesson has proven to be a good starting point for understanding how to make a Networked Multiplayer project and that this quick overview of the most important aspects of the system have shown how easy it is to create Multiplayer games in Unity.
我們希望這一課已經被證明是理解如何建立一個聯網的多人游戲項目的好起點,并且這個系統的最重要方面的快速概述顯示了在Unity中創建多人游戲是多么容易。
For more information on Multiplayer Networking, please see the lessons and documentation pages linked below.
有關多人聯網的更多信息,請參閱下面鏈接的課程和文檔頁面。