关闭

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

标签: MMORPGunity3d文档网络游戏插件
367人阅读 评论(0) 收藏 举报
分类:

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#脚本会执行。


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:2167次
    • 积分:78
    • 等级:
    • 排名:千里之外
    • 原创:0篇
    • 转载:0篇
    • 译文:6篇
    • 评论:0条
    文章分类
    文章存档