| 12345678910111213141516 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- /* 计分器-pk时分别统计玩家得分-击中动物不同部位得分不同 */
- public class HunterGamePlayerScoreCounter
- {
- public int[] hitScores = {0, 0};
- ChallengeGameModeLocalPK gameModeLocalPK;
- public HunterGamePlayerScoreCounter(ChallengeGameModeLocalPK gameModeLocalPK) {
- this.gameModeLocalPK = gameModeLocalPK;
- GameEventCenter.ins.onTargetAnimalHurt += (a, hurtValue) => {
- int playerIndex = gameModeLocalPK.GetCurrentPlayIndex();
- hitScores[playerIndex] += hurtValue;
- };
- }
- }
|