unity-programming-c#-1-frist day

来源:互联网 发布:局域网共享端口 编辑:程序博客网 时间:2024/06/18 11:59

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.



0 1
原创粉丝点击