27 lines
518 B
C#
27 lines
518 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace BITFALL.Industry
|
|
{
|
|
public class InGameGateway :UnityNetDevice,INetGateway
|
|
{
|
|
[SerializeField] private int radius;
|
|
protected override void Start()
|
|
{
|
|
base.Start();
|
|
InGameNetService.Register(this);
|
|
}
|
|
protected override void Dispose()
|
|
{
|
|
base.Dispose();
|
|
InGameNetService.UnRegister(this);
|
|
}
|
|
public override Bounds GetBounds()
|
|
{
|
|
return new Bounds(transform.position, Vector3.one * radius);
|
|
}
|
|
}
|
|
|
|
}
|