// Start is called before the first frame update void Start() { m_playerControls = GetComponent <PlayerController>().PlayerControls; m_eventManager = EventManager.Instance; m_playerInput = GetComponent <PlayerInput>(); m_playerMovement = GetComponent <PlayerMovement>(); m_fishingController = FishingController.Instance; m_uiManager = UIManager.Instance; m_caughFish = new HashSet <CollectibleItem.ItemID>(); m_variableStorage = FindObjectOfType <InMemoryVariableStorage>(); m_playerControls.Player.Interact.started += SwitchToFishing; m_playerControls.Fishing.Interact.started += FishingInteract; m_playerControls.Fishing.Cancel.started += FishingCancel; m_playerControls.Fishing.Vertical.started += AimFishingReticleVert; m_playerControls.Fishing.Vertical.canceled += AimFishingReticleVert; m_playerControls.Fishing.Horizontal.started += AimFishingReticleHori; m_playerControls.Fishing.Horizontal.canceled += AimFishingReticleHori; m_playerControls.Fishing.Disable(); m_fishingReticle.SetActive(false); m_fishingRod.SetActive(false); m_eventManager.AddFishReelStartListener(FishReelStarted); m_eventManager.AddFishReelEndedListener(FishReelEnded); m_eventManager.AddSkillUnlockedListener(UpdateFishingCapability); }