Private Variable didn't work?

Hello guys, i have animated object in scene. Object have 2 animation’s. I animating them by private variable. All seems gonna be ok before i duplecate object. When i duplicate object and start interact with one of them the first animation going good but if i then interact with second he is playing second animation(must playing 1st too). I am using variable

private var _Activated : boolean; 
    
if(Physics.Raycast(ray.origin, ray.direction,hit, 5.0)){
	if(hit.collider.gameObject.tag==obj && _Activated  == false){
		currentObj = hit.collider.gameObject;
		ObjectControl(Anim1Sound,true,anim1,currentObj);
	}
	else if( _Activated == true)
	{
		currentObj = hit.collider.gameObject;
		ObjectControl(Anim2Sound,false,anim2,currentObj);
	}
}

What should i do with my variable? or i need another method?

Thank you!

your variable isn’t set, so it is neither true nor false. try adding = true or = false to your code and see if that helps.