#pragma strict var block : GameObject; function Update - TopicsExpress



          

#pragma strict var block : GameObject; function Update () { var pos : Vector3 = Camera.main.ScreenToWorldPoint(Input.mousePosition); var posIntX : int = Mathf.FloorToInt(pos.x); var posIntY : int = Mathf.FloorToInt(pos.y); if(Input.GetMouseButtonDown(0)) { Instantiate(block,Vector3(posIntX,posIntY,0),transform.rotation); } } bunu c# ye cevirin arkadaslar lutfn
Posted on: Sun, 19 Oct 2014 07:38:07 +0000

Trending Topics



Recently Viewed Topics




© 2015