示例#1
0
 private void OnUnitKilled(GameUnit gameUnit)
 {
     if (gameUnit.GetTeam() != 0)
     {
         // Increase the player's score.
         GameLogicMgr gameLogicMgr = GameLogicMgr.GetInstance();
         gameLogicMgr.Score += 1;
     }
 }