GetScore() public method

public GetScore ( ) : float
return float
示例#1
0
 void Update()
 {
     if (s.GetScore() > SpeedUpScore)
     {
         SpeedUpScore = s.GetScore() + SpeedUpScore;
         this.speedUp();
         Debug.Log("speedup!");
     }
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     if (score != null && score.GetScore(side_char) > curr_score)
     {
         curr_score++;
         Debug.Log("GOOOOAALLLLL! " + side_char + ": " + curr_score);
     }
 }