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.
If you dont know about classes you should go back to basic or read more about OOP Object Oriented Programming. The also many books on the market...
Have you tried a debug of the if statement?
As i see it you will always add to E and never get any more enemy.
So it this the actual script or...
did you attach this to player or the lava?
If player, it shouldent detect for player.
If on lava, why does lava need health?
im not sure about...
Have you look into Unity car example?
yes seem i forgot transform
var dist = Vector3.Distance(this.tranform.position, pointB.transform.position);
Can this help?
var pointA : Transform;
var pointB : Transform;
var speedNPC : float = 5;
var minDistance : float = 5;
function Update ()
well when you use lookat it should reset the rotation to what you are looking at.
So no problem there.
What kind of error?
Which folder are you sync?
I use dropbox, and blx( something)
And dropbox not good whit more people together. Something the...
Maybe this can help
still dont have to be public static just public
public is so it can be access from other.
It it set to private. Nothing but the class itself can...
1 of the Collider need a rigidbody to activate.
BUT if 1 whit the rigidbody not moving. The will not be any trigger event.
So best to have the 1...
you can also use Sendmessage or broadcastmessage
no one doing that anyway!!
oooh i see now why you keep posting about this BeginArea
I copied the wrong linie of code to the first code.. i corrected that now..
im not using beginarea in the other code whit window and function .. only in the code that work just straight in the GUI area.
I made this GUI code to set some movement.
I made it in a function.
It show up on screen but the button wont show any debug or anything.
Well first off you mention this
And that more sounded from your players health.
But you cannot subtract health from a prefab in script.
Well are the not attach to the player??
if so it will or should
Well do you have a reference to the healthObject inside the code.
Or is it just a object child of the player?
because i think you need to use...
Well you have already answer you question in your first post.
to load use
intBack = PlayerPrefs.GetInt ("Ruby");