// Start is called before the first frame update void Start() { styleImageScript = FindObjectOfType <ID_StyleImage>(); styleSliderScript = FindObjectOfType <ID_StyleSlider>(); styleModEvent.AddListener(ModStyle); playerDamageStyleEvent.AddListener(PlayerStyleDamageMod); }
private void OnEnable() { GetPlayer = FindObjectOfType <Player>(); pCon = FindObjectOfType <InputSystem_PlayerController>(); styleSliderScript = FindObjectOfType <ID_StyleSlider>(); optionsMenu = FindObjectOfType <ID_OptionsMenu>().gameObject; CharMenu = FindObjectOfType <ID_CharMenu>().gameObject; healthbar = FindObjectOfType <ID_PlayerHealthSlider>(); statsScript = FindObjectOfType <PlayerStatsScript>(); interactText = FindObjectOfType <ID_InteractText>().gameObject; }