示例#1
0
 // Use this for initialization
 void OnTriggerEnter2D(Collider2D collider)
 {
     if (collider.tag == "weapon")
     {
         Score1.AddPoint();
         Destroy(collider.gameObject);
         //gameObject.SetActive(false);
     }
 }
示例#2
0
 void Start()
 {
     Score1.AddPoint();
     Score     = PlayerPrefs.GetInt("Score", Score);
     highScore = PlayerPrefs.GetInt("highScore", 0);
 }