private void OnEnable() { this.gameConfiguration = (GameConfigurationBehaviour)this.target; }
/// <summary> /// Loads the game configuration, if available. /// </summary> private void Awake() { if (this.GameConfiguration == null) { this.GameConfiguration = (GameConfigurationBehaviour)FindObjectOfType(typeof(GameConfigurationBehaviour)); } }