mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Added AddComponentMenu empties and namespace
This commit is contained in:
parent
37e5b49f28
commit
fad50818bf
@ -4,6 +4,7 @@
|
||||
|
||||
namespace Mirror.Examples.Additive
|
||||
{
|
||||
[AddComponentMenu("")]
|
||||
public class AdditiveNetworkManager : NetworkManager
|
||||
{
|
||||
[Scene]
|
||||
|
@ -1,9 +1,12 @@
|
||||
using UnityEngine;
|
||||
using Mirror;
|
||||
|
||||
namespace Mirror.Examples.Pong
|
||||
{
|
||||
// Custom NetworkManager that simply assigns the correct racket positions when
|
||||
// spawning players. The built in RoundRobin spawn method wouldn't work after
|
||||
// someone reconnects (both players would be on the same side).
|
||||
[AddComponentMenu("")]
|
||||
public class NetworkManagerPong : NetworkManager
|
||||
{
|
||||
public Transform leftRacketSpawn;
|
||||
@ -35,3 +38,4 @@ public override void OnServerDisconnect(NetworkConnection conn)
|
||||
base.OnServerDisconnect(conn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user