I have 2 scripts: WeaponAttack and an AnimationEventManager.
this is the 2 methods from WeaponAttack
public void EnableCollider()
    {
        
        Debug.Log("collider enabled");
        isAttacking = true;
    }
    
    public void DisableCollider()
    {
        
        Debug.Log("collider disabled");
        isAttacking = false;
    }
and these 2 methods are from the AnimationEventEditor
public void StartAttackCollider()
    {
        
        weaponAttack.EnableCollider();
         
    }
    public void StopAttackCollider()
    {
        
        weaponAttack.DisableCollider();
        
    }
Id like to use animation events to turn the box colliders on and off using the Enable and Disable Collider methods inside of WeaponAttack but with what I currently have written I get an object reference error that weaponAttack is not set to an instance of an object. Ive been scratching my head at this all day and can't figure out what I should do lol, if you know how I can fix this pls lmk! thanks!
 
    