22 lines
426 B
C#
22 lines
426 B
C#
using Godot;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace Rokojori
|
|
{
|
|
[GlobalClass]
|
|
public partial class JoinSession:Action
|
|
{
|
|
[Export]
|
|
public NetworkManager networkingManager;
|
|
|
|
[Export]
|
|
public NetworkSessionRequest sessionRequest;
|
|
|
|
protected override void _OnTrigger()
|
|
{
|
|
networkingManager.Initialize();
|
|
networkingManager.sessionManager.JoinSession( sessionRequest );
|
|
}
|
|
}
|
|
} |