gameover.blog.ir
یک اسکریپت بسازید به اسم helloworld (پسوند cs هست به معنی سیشارپ.حروف کوچک و بزرگ باید دقیقا همنام با کلاس اصلی داخل اکریپت باشه).سپس یک گیم ابجکت بسازید(در پنجره قسمت hierarchy) و اسکریپت رو drag کنید روش.
using UnityEngine;
using System.Collections;
public class MainPlayer : MonoBehaviour {
// Use this for initialization
void Start () {
Debug.Log("hello world");
}
// Update is called once per frame
void Update () {
}
}
برچسب:
نویسنده: ایلیا حیدری