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

unity-programming-c#-1-frist day

2016-03-16 16:07 525 查看
What is the programming.

You're trying to tell the stupid computer what you want it to do.

that is our job.

Afew days ago, I watch some web video. I start to interested in the VR(Virtual Reality)Game and the AR(Augmented Reality)Game. They are very science and magic . That day I tell myself that is the future. I want to build my future
.But I have no power to do this . So I find some thing to learn ,the Unity3D and UE4(Unreal Engine 4). That can help me. So I want to learn one.


In the past few days, I learn some Unity3D basics, and now I need to learn c# and the others.So today is my first day to learn my skill about c# in unity.

In The Last semester my college teach me the c programming language.

So I konw a lot of knowledge about programming.

using UnityEngine;
using System.Collections;
public class DemoScript : MonoBehaviour
{
public string HellowWorldMessage = "Hellow World";
int number;
void Start ()
{
Debug.Log (HellowWorldMessage);
}
void Updata()
{
Debug.Log (number);
number = AddByOne(number);
}
int AddByOne(int numberToAdd)
{
return numberToAdd + 1;
}

}


In console, you can see the Hellow World, and 1,2,3,4....

A easy programming.

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