Getting Started
Last updated
Was this helpful?
Last updated
Was this helpful?
Install .NET core template of FigNet from nuget.org (https://www.nuget.org/packages/fignet.core.template) or run command below in power shell
Create a new project and Hit play.
Folders Structure
lib
Contains FigNet assemblies
Messages
Contains network operations (messages) and handlers
Misc
Contains default logger, serializer and utility scripts
Modules
Contains tell a joke module (added to server as plugin)
Create new a project and import FigNet from asset store
Go to Player Settings and set API Compatibility Level to NET 4.x.
Open Demo scene (Assets/FigNetSample/Demo) and Hit play
FigNetProviderLoader.cs is used to load provider in above case LiteNetLibProvider
ClientManager.cs is the entry point of client application, it keeps IClientSocket running
ConnectionManager.cs it receives network events of IClientSocket by Implemention IClientSocketListner
Import FigNetCore.package in your project.
Go to Player Settings and set API Compatibility Level to NET 4.x.
Attach ServerManager.cs to empty gameobject
ServerManager.cs: creates a IServerSocket instance based on setting in ServerConfig.xml