您的位置:首页 > 移动开发 > Unity3D

unity3d开源Ultimate MMORPG插件技术文档渣翻译第2页

2015-07-05 23:10 369 查看
ultimate MMORPG插件下载地址:http://pan.baidu.com/s/1sjBPMaT

Page5

一直想弄个MMORPG ,发现了这个牛逼的插件,但我是小白,苦于网上没教程,就尝试下翻译技术文档,我技术渣英文渣,只求抛砖引玉引大神出来,有错欢迎指出来,我共享翻译文档,希望大神更正,我会在更正错误的地方打括号留下大神的名字重新上传翻译文档(:D)。

Part I: Into the Darknessor

How to program

 

What for?

                  第一部分:进入黑暗或如何编程

                      

为什么?

Ultimate MMORPG Kit allows people tocreate MMORPG games without programming. This is described as advantage andit’s absolutely true. You can simply drag-and-drop scripts, fill the text fieldsand create your own MMORPG game without programming at all. But
if you knoweven the simple basic things of  programming,you will get the Great Power. No, really. One line of code can change your gameforever. Of course, you can miss this Part if you don’t want to learn or youalready know the basic programming things, especially
in C#. But we promise thatthe instruction will be easy, brief and painless. Regard this Part as thepresent for you.

Ultimate MMORPG插件可以使人们不必通过编程就创建MMORPG游戏。这正是它的优势而且绝对是真的。你可以简单地拖动脚本,填充文本框和创建自己的MMORPG游戏,完全不用编程。但若你懂一点简单的基础的编程方面的东西,你将获得巨大的能力。是的,这是真的。一行代码可以永远改变你的游戏。当然,你可以错过这一部分如果你不想学习或你已经知道的基本编程的东西的话,尤其对于c#。但我们保证学习过程将是非常容易,短暂而轻松的。可以视这部分的学习为对你的礼物。

Functions, variables andmethods

函数,变量和方法

At first, a little bit about programming languages. There are a lotof them but we will need four of them: C#, JavaScript, PHP and MySQL’s queries.

首先,谈下编程语言。编程语言有很多但我们只需要四种:C#,JavaScript, PHP and MySQL’s 查询.

Unity3D offers to us three different languages: C#, JavaScript (alsoknown as UnityScript) and Boo. The most powerful of them and most convenient(in our opinion) is C#. Practically all scripts in Ultimate MMORPG Kit arewritten in this language. JavaScript
is good in web aspects, so we use it too.PHP is a server-side language and helps to send/receive the information to/fromMySQL Database. MySQL is a language of queries (actually, not the language atall). It will write/send the information to/from the Database.

Unity3d给我们提供了三种不同的语言:C#, JavaScript (更多作为 UnityScript) and Boo.它们中最强大和最方便(对于我们而言)的是C#. Ultimate MMORPG插件的脚本几乎都是用这种语言写的。JavaScript在web方面有很好的表现,所以我们也使用它。PHP是一种服务器端语言,帮助发送或接收来自于MySQL数据库的信息。MySQL是一种查询语言(实际上,不是语言)。它将编写(发送)信息到数据库。

In this Part of the Documentation we will try to explain the basic programmingthings using C# language.

在文档的这部分内容里,我们将试着解释C#语言最基本的编程知识。

You know what variables mean. All of you can solve a simple equationlike «2+X=5». X is a variable. All scripts have variables too. There are a fewbasic types of  them:

   你知道什么是变量。你能解类似于2+x=5这样简单的方程。这里X就是变量。所有的脚本也有变量。其中有几种基本类型:

 

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息