- Home /
How to store items in the database. Then run when the player with the item. To unlock the screen.
How to store items in the database. Then run when the player with the item. To unlock the screen.
I want to be a player on the item and the item to the database. Items that have already run out of games to play on the new
My Code Javascript In Player
private var score:int;
var scorecount:GUIText;
function Start () {
}
function Update () {
var text:String = "Score : "+score.ToString();
scorecount.text = text;
}
function OnCollisionEnter (collision:Collision) {
if(collision.gameObject.tag =="diamond")
{ score=score+1;
print("Score ="+score);
}
}
Comment
I don't see a question here. What is it that you want help with?
Your answer
Follow this Question
Related Questions
Adding Score & Level to Database / Dreamlo 1 Answer
How to make a game securised with highscore in database 2 Answers
Item/Database Error 2 Answers
How to create complex item system in an elegant way 0 Answers