void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { DestroyImmediate(gameObject); } Miscellaneous.CheckNullAndLogError(_avatarController); Miscellaneous.CheckNullAndLogError(_scoreText); Miscellaneous.CheckNullAndLogError(_gameOverTexts); _receiver = new MicrobitReceiverClient(_port); _highScoreClient = GetComponent <HighScoreClient>(); Miscellaneous.CheckNullAndLogError(_highScoreClient); }