class ElectricBoxInkGameController extends DeviceInkGameControllerBase
{
	private var m_onOverrideListener : CallbackHandle;

	protected override function RegisterBlackboardCallbacks( blackboard : IBlackboard )
	{
		super.RegisterBlackboardCallbacks( blackboard );
		if( blackboard )
		{
			m_onOverrideListener = blackboard.RegisterListenerBool( ( ( ElectricBoxBlackboardDef )( GetOwner().GetBlackboardDef() ) ).isOverriden, this, 'OnOverride' );
		}
	}

	protected override function UnRegisterBlackboardCallbacks( blackboard : IBlackboard )
	{
		super.UnRegisterBlackboardCallbacks( blackboard );
		if( blackboard )
		{
			blackboard.UnregisterListenerBool( ( ( ElectricBoxBlackboardDef )( GetOwner().GetBlackboardDef() ) ).isOverriden, m_onOverrideListener );
		}
	}

	protected event OnOverride( value : Bool )
	{
		if( value )
		{
			PlayLibraryAnimation( 'on_to_off' );
		}
	}

}

