Пример #1
0
    private GameObject StationGateway = null;    // doesnt have to be station just the gateway this one will connect to

    public override void OnStartServer()
    {
        SetOffline();
        registerTile = GetComponent <RegisterTile>();
        Position     = registerTile.WorldPosition;
        SubSceneManager.RegisterWorldGateway(this);
        ServerChangeState(false);
    }
Пример #2
0
    public override void OnStartServer()
    {
        SetOffline();
        registerTile = GetComponent <RegisterTile>();

        ServerChangeState(false);

        if (ifWorldGateToWorldGate && StationGateway != null)
        {
            SetUpWorldToWorld();
        }
        else if (!ifWorldGateToWorldGate)
        {
            SubSceneManager.RegisterWorldGateway(this);
        }
    }