// Start is called before the first frame update void Start() { sfxPlayer = GetComponent <PlaySFXRandPitch>(); monsterChecks = gameObject.GetComponentInParent <MonsterChecks>(); if (monsterChecks == null) { Debug.Log("MonsterChecks is null"); } var circleCollider = GetComponent <CircleCollider2D>(); myCharData = GetComponent <CharacterData>(); //Physics2D.IgnoreCollision(circleCollider, GetComponent<CapsuleCollider2D>()); }
// Start is called before the first frame update void Start() { sfxPlayer = GetComponent <PlaySFXRandPitch>(); myCharData = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerData>(); }