private ScoreBoardState() { if (_instance != null) { return; } _instance = this; }
void Start() { this.scoreBoardState = GameObject.FindGameObjectWithTag("ScoreBoard").GetComponent <ScoreBoardState>(); this.snakeScoreComparer = new SnakeScoreComparer(); }
void Awake() { this.scoreBoardState = GameObject.FindGameObjectWithTag("ScoreBoard").GetComponent <ScoreBoardState>(); }