mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
23 lines
472 B
C#
23 lines
472 B
C#
#if ENABLE_UNET
|
|
using System;
|
|
using UnityEngine;
|
|
|
|
namespace UnityEngine.Networking
|
|
{
|
|
[DisallowMultipleComponent]
|
|
[AddComponentMenu("Network/NetworkStartPosition")]
|
|
public class NetworkStartPosition : MonoBehaviour
|
|
{
|
|
public void Awake()
|
|
{
|
|
NetworkManager.RegisterStartPosition(transform);
|
|
}
|
|
|
|
public void OnDestroy()
|
|
{
|
|
NetworkManager.UnRegisterStartPosition(transform);
|
|
}
|
|
}
|
|
}
|
|
#endif
|