public void SetAllAttackPoints(int playerID) { foreach (GameObject entity in entityStorage.GetPlayerEntityList(playerID)) { entityStats.SetCurrAttackPoint(entity, entityStats.GetCurrMaxAttackPoint(entity)); } }
public void SetAllAttackPoints() { foreach (List <GameObject> playerEntityList in entityStorage.activePlayersEntityList) { foreach (GameObject entity in playerEntityList) { entityStats.SetCurrAttackPoint(entity, entityStats.GetCurrMaxAttackPoint(entity)); } } }