unity3d开源Ultimate MMORPG插件技术文档菜鸟翻译第6页

Page6

 

5) Add the script to the «Portal1» andassign «Portal2» as the <Portal2> variable.

  添加脚本到“Portal1”并标记“Portal2”作为“Portal2”的变量。

If you make everything right, in the “Play” mode you will see theendless Cube’s falling. When he touches the first portal, his position willchange to the secondportal’s position. And he will fall again.

   如果你所有的步骤都正确,在“播放模式”下你最终将看到Cube跌落。当他碰到第一个portal的时候,他的位置将变为第二个portal的位置。然后他将再次跌落。

           

 

There and back again: C#, JavaScript, PHP and MySQL

回到开始部分:C#, JavaScript, PHP and MySQL

 

The course of programming hasended. It wasn’t a learning in fact, but if you understand those two chapters,it will be easier for you to create your games usingUltimate MMORPG Kit (andUnity in general). Perhaps you will change some scripts for your purpose. Ifyou want to know more about scripting in Unity, read the UnityScriptingReference (http://docs.unity3d.com/Documentation/ScriptReference/index.html).

编程的课程结束了。事实这算不上是学习,但如果你懂得这两章,那你使用UltimateMMORPG插件创建你的游戏将会很轻松(主要是指使用Unity)。也许出于你自己的目的你将改变一些脚本。如果你想知道Unity中更多的脚本,请阅读UnityScripting参考手册(http://docs.unity3d.com/Documentation/ScriptReference/index.html)。

It is important to understand, how theconnection with MySQL Databaseworks, so there will be a little bit about that.

理解如何连接MySQL Databaseworks是非常重要的事情。所以这里将花一点时间来讲解此内容。

C# scripts work with the game. Itrealizes practically all things like Player’smoving, fightings, NPCs and etc.But if there is any information that needs to be save(new level, made quest,new items and etc.) the C# script will collect this information and send to theJavaScript script.

C#脚本在游戏中执行。它实现了几乎所有的东西比如玩家的移动,战斗,NPC等。但是如果有任何信息需要被保存(新的关卡,做任务,新的物品等),C #脚本将收集这些信息,并发送到JavaScript脚本。

Javascript script is like a bridgebetween the Player’s computer and hosting.JavaScript will send received data(from C# script) to the PHP script which exists in the hosting.

JavaScript脚本像是连接玩家电脑和主机之间的桥梁。JavaScript会发送接收数据(来自于c#脚本)到主机中的PHP脚本。

PHP scripts connect with the MySQLDatabase and using MySQL queries write/receive the information to the Database.Then PHP script sends the answer to the JavaScript. And depending on theJavaScript received information, C# script will do something.

PHP脚本连接MySQL数据库并使用MySQL查询读写或接收来自数据库的信息。然后PHP脚本发送结果到JavaScript。依靠JavaScript取得信息后,C#脚本会执行。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值