make field readonly

This commit is contained in:
Colin McMillen 2020-03-07 12:40:21 -05:00
parent 0a37453dbd
commit 28ef337691

View File

@ -2,8 +2,8 @@ using System;
namespace SemiColinGames { namespace SemiColinGames {
class FpsCounter { class FpsCounter {
private readonly int[] frameTimes = new int[60];
private double fps = 0; private double fps = 0;
private int[] frameTimes = new int[60];
private int idx = 0; private int idx = 0;
public int Fps { public int Fps {