hello
i need a little help
a dont now what is wrong
but that script doesnt function!
when i click in my skill button
the sistem doesnt open my other buton!
help me!
(THE GU MP and HP doesnt apears!)
whats the problem?
function OnGUI()
{
if (GUI.Button(Rect(inbw, inbh, size, size1), "Inventory"))
{
if (GUI.Button(Rect(inbw, inbh, size, size1), "Force")){
if(skill>=cost){
Attributes.force+-1;
timer+=1
}
}
if (GUI.Button(Rect(inbw, inbh, size, size1), "mp")){
}
if (GUI.Button(Rect(inbw, inbh, size, size1), "hp")){
}
}
}
Oh man I’m still using Legacy… I hate learning new systems lol I had the same problem with Mecanim… Plus it involves remaking the ENTIRE UI for a game. But the new UI is probably easier to use (and looks a whole lot better O.o ) If I didn’t have to remake a whole game system I’d probably learn it…
All the more reason why the book is necessary, but your biggest problem isn’t language, it’s the lack of effort. Every single post you make looks like you found some random thing on the internet and copy/pasted it without knowing how a single piece of it actually works.
Go find a book on C# or Javascript or something. Find a book on English while you’re at it- being from a non-English-speaking country means you have to work harder to make yourself understood in an international setting, it isn’t a crutch that people are going to tiptoe around. Look through DOZENS of tutorials on Unity’s website, for everything. The fact that you’re focusing on the old UI style says to me that you’re looking everywhere BUT Unity’s website for information. Debug.Log EVERYTHING, and don’t come to the support forum until if/when you have a valid, measurable problem that you can point at and not just “somehow it isn’t working- I’ve tried nothing to get it to work since I don’t want to have to learn a programming language or how Unity works. Fix it for me!”.
You’ve had literally a DOZEN threads up on here in the past 4 days alone, and we are NOT here to teach you everything about the program from scratch. I’m not going to be responding to any of your threads for a few weeks, minimum.