// Use this for initialization void Awake () { world = GameObject.Find("World"); battle = GameObject.Find("Battle"); actionBar = GameObject.FindObjectOfType<EnemyActionBar>(); battleResultsController = GameObject.FindObjectOfType<BattleResultsController>(); playerInteractionController = GameObject.FindObjectOfType<PlayerInteractableController>(); playerMovement = GameObject.FindObjectOfType<PlayerMovement>(); }
void Awake () { battleResultsPanel = GameObject.FindObjectOfType<BattleResultsController>().gameObject; battleResultsPanel.SetActive(false); playerStatusController = GameObject.FindObjectOfType<PlayerStatusController>(); enemyActionBar = GameObject.FindObjectOfType<EnemyActionBar>(); battle = GameObject.Find("Battle"); bossStatusController = GameObject.FindObjectOfType<BossStatusController>(); enemySpawnerController = GameObject.FindObjectOfType<EnemySpawnerController>(); }
void Awake () { enemyActionBar = GameObject.FindObjectOfType<EnemyActionBar>(); playerClass = GameObject.FindObjectOfType<PlayerClass>(); skillButtonControllers = GameObject.FindObjectsOfType<SkillButtonController>(); enemyMonster = GameObject.FindObjectOfType<EnemyMonster>(); winBattleResults = GameObject.Find("Win Battle Results"); loseBattleResults = GameObject.Find("Lose Battle Results"); winBattleResults.SetActive(false); loseBattleResults.SetActive(false); levelUpHeader.SetActive(false); }