private void Awake() { _mouseController = FindObjectOfType <MouseController>(); if (_mouseController == null) { throw new NullReferenceException("No MouseController found in scene"); } _turnController = FindObjectOfType <TurnController>(); if (_turnController == null) { throw new NullReferenceException("No TurnController found in scene"); } _uiController = FindObjectOfType <AdventureUIController>(); if (_uiController == null) { throw new NullReferenceException("No UIController found in scene"); } }
public AdventureController(Adventure adventure, Map adventureMap, AdventureUIController uiController) { _adventure = adventure; _adventureMap = adventureMap; _uiController = uiController; }