Metaverse Hub
Available in the Industries Circle

概述
中心 場景是多人玩家落地場景。
主要目的是提供存取到其他空間(藝廊、PicaZoo、音樂)。
為了做到這點,場景含有傳送入口,其允許玩家來傳送到其他空間。
相同的是,其他場景有一個傳送入口來回到這個中心。
同時,相近的玩家可以彼此交談。

傳送入口

空間載入器啟用
SpaceLoader
元件位於各個傳送入口上。
在Awake()
期間,它使用SpaceDescription
可指令碼物件參數來更新傳送入口文字欄位。
當一個玩家進入傳送入口平台,它啟動「離開」流程以載入新的場景。
C#
private void OnTriggerEnter(Collider other)
{
if (other.GetComponentInParent<HardwareHand>())
{
exitingTriggerCollider = other;
StartExiting();
}
}
StartExiting()
方法包含一個避免預料外的場景載入的防護措施。
然後它以SwitchScene()
來調用實際的場景切換。