void Awake() { areaNotText = FindObjectOfType <AreaNotificationText>(); cameraController = FindObjectOfType <CameraController>(); plrInter = FindObjectOfType <PlayerInteract>(); gamemanager = FindObjectOfType <GameManager>(); soundController = GetComponentInChildren <PlayerSoundController>(); playerDashParticleController = GetComponentInChildren <PlayerDashParticleController>(); playerMovement = GetComponent <PlayerMovement>(); AmuletFlash = FindObjectOfType <TheFirstFlash>(); statusGUI = FindObjectOfType <StatusGUI>(); footPrintParticles = transform.Find("FootprintParticles").GetComponent <ParticleSystem>(); landParticles = transform.Find("LandParticles").GetComponent <ParticleSystem>(); jumpParticles = transform.Find("JumpParticles").GetComponent <ParticleSystem>(); wallJumpParticles_left = transform.Find("WallJumpParticlesLeft").GetComponent <ParticleSystem>(); wallJumpParticles_right = transform.Find("WallJumpParticlesRight").GetComponent <ParticleSystem>(); enemyKillCount = new Dictionary <string, int>(); Inventory[] equipments = GetComponents <Inventory>(); for (int i = 0; i < equipments.Length; i++) { if (equipments[i].inventoryUI.name == "EquipmentUI") { equipment = equipments[i]; } else { hubChest = equipments[i]; } } craftWindow.equipment = equipment; craftWindow.hubChest = hubChest; }
private void Awake() { Flash = FindObjectOfType <TheFirstFlash>(); dialogBox = Resources.FindObjectsOfTypeAll <DialogBox>()[0]; }