This question was
closed Feb 04, 2017 at 09:32 PM by
mike1233 for the following reason:
Other
Question by
mike1233 · Feb 04, 2017 at 07:08 PM ·
scripting problem2d gameontriggerenterscorescoreboard
Easy Short kill score script not working
every time a player drags a enemy up to the top screen in a certain area the score should count as death but its not working.
? why I don't know any advice is appreciated
yes I have a score maanger script attached to the scor etxt count on ui so that's not the issue
2d game
#pragma strict
var scoreValue : int = 1;
function Start () {
}
function Update(){
if (transform.position.y > 4){
ScoreManager.score += scoreValue;
}
}
Comment
Follow this Question
Related Questions
Display UI Panel on 2D Box Collider Trigger 0 Answers
Variable from another script isn´t updating 3 Answers
How do I make the character rotate with the 2D camera? 0 Answers
reload game 1 Answer