Git Product home page Git Product logo

netgo-unity-client's Introduction

netgo-unity-client

Introduction

netgo-unity-client is a unity client SDK for netgo,it is easy to use and contains a demo on how to use it.

Start the Demo

Environment

  • Unity 2018.4.2f1
  • MacOS Catalina
  • Android Mobile Phone

Build the APK for Android

Configure Network

Open the DemoLobbyScene and configure the netgo server IP address and port.

Switch Platform

Switch the Platform to Android.

Build

Click Build to generate the APK.

Other Platforms

netgo-unity-client can also be run on MacOS/IOS/Windows.

Run and Operate

Menu

You should install and run the APK on more than one clients.Look at the lobby scene menu:

  1. Room Name : Define a unique name for a Room.
  2. Room Capacity : The count which one Room can hold.
  3. Join Or Create Room: If the Room exists , then join the Room ,else create a new Room.
  4. Create Room: Just create the Room.
  5. Join Room: Just join the Room.
Communications

When a client first join a room, a cube will be instantiated(Here we call Mine Cube).The Mine Cube will be cloned(Here we call Clone Cube) on other client when the other one join the same room.You can click the Mine Cube to change the colors,it can be synced by using RPC:

And then we click Move button to let the two cubes move.We here use View Sync to sync the positions and rotations for each other:

When you click the Clone Cube,we here use Custom Event to send a message to Mine Cube.

For details you can review the revelant souce codes.

netgo-unity-client's People

Contributors

harlanc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cloudhu mengtest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.