From 70308a5d8418d78268271262d2886bc8f6ed7228 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Fri, 20 Mar 2020 11:00:52 -0400 Subject: [PATCH] make fields readonly --- Shared/Player.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shared/Player.cs b/Shared/Player.cs index 6a045cd..3484fe0 100644 --- a/Shared/Player.cs +++ b/Shared/Player.cs @@ -36,9 +36,9 @@ namespace SemiColinGames { private float invincibilityTime = 0; // For passing into Line.Rasterize() during movement updates. - private List movePoints = new List(100); + private readonly List movePoints = new List(100); // Possible hitboxes for player <-> obstacles. - private List candidates = new List(10); + private readonly List candidates = new List(10); public Player(Vector2 position, int facing) { this.position = position;