// Use this for initialization void Start () { worldCamera = GetComponentInChildren<Camera>(); eventSystem = GameObject.FindObjectOfType<EventSystem>(); playerInteratableController = GameObject.FindObjectOfType<PlayerInteractableController>(); bossStatusController = GameObject.FindObjectOfType<BossStatusController>(); lastKnownPosition = transform.position; }
// 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>(); }
// Use this for initialization void Start () { playerInteractableController = GameObject.FindObjectOfType<PlayerInteractableController>(); for (int i = 0; i < answerBlocks.Length; i++) { if (answerBlocks[i] != null) { answerBlocks[i].GetComponentInChildren<Text>().text = answers[i].ToString(); } } }
// Use this for initialization void Start () { world = GameObject.Find("World"); battle = GameObject.Find("Battle"); playerMovement = GameObject.FindObjectOfType<PlayerMovement>(); playerClass = GameObject.FindObjectOfType<PlayerClass>(); enemySpawnerController = GameObject.FindObjectOfType<EnemySpawnerController>(); transitionPanel = GameObject.Find("Transition Panel"); battle.SetActive(false); bossStatusController = GameObject.FindObjectOfType<BossStatusController>(); playerInteractableController = GameObject.FindObjectOfType<PlayerInteractableController>(); modeTransitionController = GameObject.FindObjectOfType<ModeTransitionController>(); puzzleObjectController = GameObject.FindObjectOfType<PuzzleObjectController>(); unityAdsExample = GameObject.FindObjectOfType<UnityAdsExample>(); }
// Use this for initialization void Start () { textBoxText = GameObject.Find("Text Box").GetComponentInChildren<Text>(); playerInteractableController = GameObject.FindObjectOfType<PlayerInteractableController>(); }