示例#1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.CompareTag("Log"))
     {
         StaticData.AddScore(other.GetComponent <StockMain>().pointValue);
         GameLogic.AddLog();
         Debug.Log("LogAdded");
     }
 }