using System.Collections; using System.Collections.Generic; using UnityEngine; 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; }; } }