A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
i think they are using The marching squares algorithm. Search in google - marching squares or in wikipedia. I dont know how to make collisions for...
Oh yes, i found where is problem. Eric was right :) problem is with static variables. It is with Database.js static var items[] because when i...
Tanks for suggestions. I will try to change Player.inventory as public variable. But anyway i think that problem is somewhere else. This is...
You see Player.js and Database.js are only one instance in scene. But for barter.js the items[] is not public. I realy dont want to change...
Hi. I will try shortly explain my problem. I have 3 scripts: Database.js ; Player.js; Barter.js. Database.js: static var items : Item[];...
You can edit database through editor in inspector - usually you are possible to do that. Simply attach database script to empty game object. It...
Thanks ! :)
i am trying to make simple voxel-based terrain (marching cubes algorithm) and it needs smooth normals. i know that for voxel based terrain there...
try this: clone.transform.position=camera.transform.position; clone.LookAt(camera.ScreenToWorldPoint(screenPos)); clone.velocity =...
animation.Play("runAnimation");
I have problems with recalculating smooth normals. I have tried few algorithms but they wasn't better than default RecalculateNormals() or they...
I suggest you to store all items in one database not as game object. For example: //database script who is attached to controler game object var...
Thanks for reply. This works perfectly for me :)
Hi! I have problems with converting one array from c to javascript. This is c# code: private int[,] triTable = new int[,] {{-1, -1,...
Cool stuff. Thanks for sharing :)
Try something like this: private var draw : boolean=true; function OnDrawGUI(){ if (!draw) return; // > Healthbar code< } function...
Nice work! I think you must continue creating it. With smart level design, god graphics and atmosphere this game would be awesome!! And your...
Ups! You cant use OnCollisionEnter but you must place it in Update or use yield. look in documentation about yield WaitForSeconds(). in js you...
i usually use (just convert it to C#): var delay : float = 3.0; private var timer : float = 0; function Start(){ timer = Time.time + delay;...
How can i convert string to array something like this :confused: var text : String = "hello"; var array : String[] = ConvertToArray(text); //...